diff options
author | Christoph Hellwig <hch@lst.de> | 2021-09-01 13:38:33 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-18 14:50:23 -0600 |
commit | 7ad1069166c0ccdd572d27e01cc7f7f84477df1e (patch) | |
tree | 0d1aca1a632d10208555d4212f5af9d30fef4ef7 /net | |
parent | 94f3cd7d832c28681f1dea54b4dd8606e5e2bc75 (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 'net')
0 files changed, 0 insertions, 0 deletions