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)
commit224b0683228c5f332f9cee615d85e75e9a347170
tree3bd1100e1205aee7ed98c84c404418869626e2fb
parent4f9e14aecfbdc6b762d5122489604858c5fec5e7
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