mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
7410b3c6c5
commit
981bd189f8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user