diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-07-23 17:10:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-12 17:15:36 +0300 |
commit | 73d9c8d4c0017e21e1ff519474ceb1450484dc9a (patch) | |
tree | 1d557ba1de029f9cb5025e204bd805beea4f0962 /block/blk-core.c | |
parent | 52f6f9d74f31078964ca1574f7bb612da7877ac8 (diff) | |
download | linux-73d9c8d4c0017e21e1ff519474ceb1450484dc9a.tar.xz |
blk-mq: Fix memory leak in blk_mq_init_allocated_queue error handling
If blk_mq_init_allocated_queue->elevator_init_mq fails, need to release
the previously requested resources.
Fixes: d34849913819 ("blk-mq-sched: allow setting of default IO scheduler")
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions