]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Free tags in blk_mq_init_tags() upon error
authorHannes Reinecke <hare@suse.de>
Wed, 19 Aug 2020 15:20:21 +0000 (23:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 3 Sep 2020 21:20:46 +0000 (15:20 -0600)
commit7796b784a422fe8c331d05fe8d42475876756a32
tree7c8cb54444ab64989bd155212739ca7ba204dd27
parent7d6f3a00269dfa032d3bd017e75c06261121e2b6
blk-mq: Free tags in blk_mq_init_tags() upon error

Since the tags are allocated in blk_mq_init_tags(), it's better practice
to free in that same function upon error, rather than a callee which is to
init the bitmap tags (blk_mq_init_tags()).

[jpg: Split from an earlier patch with a new commit message]

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Garry <john.garry@huawei.com>
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c