md: properly unwind when failing to add the kobject in md_alloc
mainline inclusion from mainline-v5.16-rc1 commit 7ad10691 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I81XCK Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7ad1069166c0ccdd572d27e01cc7f7f84477df1e -------------------------------- 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> Conflict: drivers/md/md.c Because add_disk_safe(). Signed-off-by:
Li Nan <linan122@huawei.com>
Loading
Please sign in to comment