]> 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)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Aug 2021 16:29:36 +0000 (10:29 -0600)
commit73ce7a17f660fb32cedd112dcb3828fb3ce373de
tree3bd1100e1205aee7ed98c84c404418869626e2fb
parent2acfcb1e9c87bc68ed3dc16111ea365e28d24382
bcache: add proper error unwinding in bcache_device_init

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>
drivers/md/bcache/super.c