From: Ming Lei Date: Wed, 23 Apr 2014 16:07:34 +0000 (+0800) Subject: blk-mq: fix leak of set->tags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=981bd189f80f34c07ac0d87e4760d09bcda5f4cb;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git blk-mq: fix leak of set->tags set->tags should be freed in blk_mq_free_tag_set(). Signed-off-by: Ming Lei Signed-off-by: Jens Axboe --- diff --git a/block/blk-mq.c b/block/blk-mq.c index c26b3be1893c..cea1bd87a416 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1562,6 +1562,7 @@ void blk_mq_free_tag_set(struct blk_mq_tag_set *set) for (i = 0; i < set->nr_hw_queues; i++) blk_mq_free_rq_map(set, set->tags[i], i); + kfree(set->tags); } EXPORT_SYMBOL(blk_mq_free_tag_set);