]> www.infradead.org Git - users/hch/block.git/commit
null_blk: add error handling support for add_disk() add-disk-error-handling
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 15 Jul 2021 19:51:40 +0000 (12:51 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 18 Aug 2021 14:34:33 +0000 (16:34 +0200)
commitae1395ec1191e9638dbaf7adf28cb11a18c1ae58
tree240583e76af79ddee3335efd599b6a950be6e329
parent9ef78cd582fb0f0da692d16b8a9d12b1998ad38d
null_blk: add error handling support for add_disk()

We never checked for errors on add_disk() as this function
returned void. Now that this is fixed, use the shiny new
error handling. The actual cleanup in case of error is
already handled by the caller of null_gendisk_register().

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/null_blk/main.c