diff options
author | Ming Lei <tom.leiming@gmail.com> | 2014-04-23 12:07:34 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-23 12:08:22 -0400 |
commit | 981bd189f80f34c07ac0d87e4760d09bcda5f4cb (patch) | |
tree | f72ccbc5f9b986b3ab417527fb301b7c8d09181d /block | |
parent | 7410b3c6c5c919d1ca432fb47ce75a8092729eae (diff) |
blk-mq: fix leak of set->tags
set->tags should be freed in blk_mq_free_tag_set().
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1562 | 1562 | ||
1563 | for (i = 0; i < set->nr_hw_queues; i++) | 1563 | for (i = 0; i < set->nr_hw_queues; i++) |
1564 | blk_mq_free_rq_map(set, set->tags[i], i); | 1564 | blk_mq_free_rq_map(set, set->tags[i], i); |
1565 | kfree(set->tags); | ||
1565 | } | 1566 | } |
1566 | EXPORT_SYMBOL(blk_mq_free_tag_set); | 1567 | EXPORT_SYMBOL(blk_mq_free_tag_set); |
1567 | 1568 | ||