diff options
author | Hannes Reinecke <hare@suse.de> | 2020-08-19 23:20:21 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-03 15:20:46 -0600 |
commit | 4d063237b92a4e8d99350ad05492a45009a3c78c (patch) | |
tree | 7c8cb54444ab64989bd155212739ca7ba204dd27 /block/blk-mq.h | |
parent | 655ac30094da0d724ce66161f15675d30da89cd8 (diff) | |
download | linux-4d063237b92a4e8d99350ad05492a45009a3c78c.tar.bz2 |
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>
Diffstat (limited to 'block/blk-mq.h')
0 files changed, 0 insertions, 0 deletions