aboutsummaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMing Lei2023-06-16 21:23:54 +0800
committerJens Axboe2023-06-16 10:12:25 -0600
commit245165658e1c9f95c0fecfe02b9b1ebd30a1198a (patch)
tree0afb4aef73404f0134af73f0cfcab25953a39e0b /drivers/md
parent84bd06c632c6d5279849f5f8ab47d9517d259422 (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 <guazhang@redhat.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20230616132354.415109-1-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions