]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: add proper error unwinding in bcache_device_init
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 06:40:26 +0000 (08:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:27 +0000 (09:47 +0200)
commit8319f7cd68d3adba79c6b61a1c35142149ae47b3
tree3ea9b07c6244d13a006aa5a51781b26da25eb297
parent939e5e0eb71efa2b9e449d581714333dc86622b6
bcache: add proper error unwinding in bcache_device_init

[ Upstream commit 224b0683228c5f332f9cee615d85e75e9a347170 ]

Except for the IDA none of the allocations in bcache_device_init is
unwound on error, fix that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20210809064028.1198327-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/bcache/super.c