summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-11-29 13:56:54 +0300
committerJens Axboe <axboe@kernel.dk>2018-11-29 08:16:08 -0700
commit4e6db0f21c99c25980c8d183f95cdb6ad64cebd2 (patch)
tree97f2715ddaa0a87b7b79667856f0a05fc480efc0 /block/blk-core.c
parent49379e6d1e9370d1e5dc09ca52aff29ae07c8ba6 (diff)
downloadlinux-stable-4e6db0f21c99c25980c8d183f95cdb6ad64cebd2.tar.gz
linux-stable-4e6db0f21c99c25980c8d183f95cdb6ad64cebd2.tar.bz2
linux-stable-4e6db0f21c99c25980c8d183f95cdb6ad64cebd2.zip
blk-mq: Add a NULL check in blk_mq_free_map_and_requests()
I recently found some code which called blk_mq_free_map_and_requests() with a NULL set->tags pointer. I fixed the caller, but it seems like a good idea to add a NULL check here as well. Now we can call: blk_mq_free_tag_set(set); blk_mq_free_tag_set(set); twice in a row and it's harmless. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions