summaryrefslogtreecommitdiff
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-09-01 13:38:33 +0200
committerJens Axboe <axboe@kernel.dk>2021-10-18 14:50:23 -0600
commit7ad1069166c0ccdd572d27e01cc7f7f84477df1e (patch)
tree0d1aca1a632d10208555d4212f5af9d30fef4ef7 /drivers/md/raid1.c
parent94f3cd7d832c28681f1dea54b4dd8606e5e2bc75 (diff)
md: properly unwind when failing to add the kobject in md_alloc
Add proper error handling to delete the gendisk when failing to add the md kobject and clean up the error unwinding in general. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions