Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f9f07e9 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

blk-mq: fix leak of hctx->ctx_map



hctx->ctx_map should have been freed inside blk_mq_free_queue().

Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 35086784
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1846,6 +1846,7 @@ void blk_mq_free_queue(struct request_queue *q)
	queue_for_each_hw_ctx(q, hctx, i) {
		blk_mq_tag_idle(hctx);
		kfree(hctx->ctxs);
		blk_mq_free_bitmap(&hctx->ctx_map);
		blk_mq_unregister_cpu_notifier(&hctx->cpu_notifier);
		if (q->mq_ops->exit_hctx)
			q->mq_ops->exit_hctx(hctx, i);