diff options
| author | Ming Lei <[email protected]> | 2023-06-16 21:23:54 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-16 10:12:25 -0600 |
| commit | 245165658e1c9f95c0fecfe02b9b1ebd30a1198a (patch) | |
| tree | 0afb4aef73404f0134af73f0cfcab25953a39e0b /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 84bd06c632c6d5279849f5f8ab47d9517d259422 (diff) | |
blk-mq: fix NULL dereference on q->elevator in blk_mq_elv_switch_none
After grabbing q->sysfs_lock, q->elevator may become NULL because of
elevator switch.
Fix the NULL dereference on q->elevator by checking it with lock.
Reported-by: Guangwu Zhang <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions