Skip to content
Commit 83cbce95 authored by Luis Chamberlain's avatar Luis Chamberlain Committed by Jens Axboe
Browse files

block: add error handling for device_add_disk / add_disk



Properly unwind on errors in device_add_disk.  This is the initial work
as drivers are not converted yet, which will follow in separate patches.

Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
[hch: major rebase.  All bugs are probably mine]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210818144542.19305-10-hch@lst.de
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 92e7755e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment