diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-14 05:26:35 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-30 11:09:00 -0700 |
commit | 40602997be26887bdfa3d58659c3acb4579099e9 (patch) | |
tree | 4b65cfc7b239f56480cc4075787528b5ed3e25d4 /include/linux/blkdev.h | |
parent | 6fc75f309d291d328b4ea2f91bef0ff56e4bc7c2 (diff) |
block: fix error unwinding in blk_register_queue
blk_register_queue fails to handle errors from blk_mq_sysfs_register,
leaks various resources on errors and accidentally sets queue refs percpu
refcount to percpu mode on kobject_add failure. Fix all that by
properly unwinding on errors.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221114042637.1009333-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions