diff options
| author | Yang Yang <[email protected]> | 2020-10-09 08:00:14 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-10-09 18:46:28 +0000 |
| commit | 47ce030b7ac5a5259a9a5919f230b52497afc31a (patch) | |
| tree | 0e36f94f3e3c2a877385be2e851c02f36a7fcde3 /drivers/mmc/core/queue.c | |
| parent | blk-mq: get rid of the dead flush handle code path (diff) | |
| download | kernel-47ce030b7ac5a5259a9a5919f230b52497afc31a.tar.gz kernel-47ce030b7ac5a5259a9a5919f230b52497afc31a.zip | |
blk-mq: move cancel of hctx->run_work to the front of blk_exit_queue
blk_exit_queue will free elevator_data, while blk_mq_run_work_fn
will access it. Move cancel of hctx->run_work to the front of
blk_exit_queue to avoid use-after-free.
Fixes: 1b97871b501f ("blk-mq: move cancel of hctx->run_work into blk_mq_hw_sysfs_release")
Signed-off-by: Yang Yang <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/mmc/core/queue.c')
0 files changed, 0 insertions, 0 deletions
