commit | 73d9c8d4c0017e21e1ff519474ceb1450484dc9a | [log] [tgz] |
---|---|---|
author | zhengbin <zhengbin13@huawei.com> | Tue Jul 23 22:10:42 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Aug 12 08:15:36 2019 -0600 |
tree | 1d557ba1de029f9cb5025e204bd805beea4f0962 | |
parent | 52f6f9d74f31078964ca1574f7bb612da7877ac8 [diff] |
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>