commit | 4e6db0f21c99c25980c8d183f95cdb6ad64cebd2 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <[email protected]> | Thu Nov 29 13:56:54 2018 +0300 |
committer | Jens Axboe <[email protected]> | Thu Nov 29 08:16:08 2018 -0700 |
tree | 97f2715ddaa0a87b7b79667856f0a05fc480efc0 | |
parent | 49379e6d1e9370d1e5dc09ca52aff29ae07c8ba6 [diff] |
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>