diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2021-08-18 17:45:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-23 21:55:46 +0300 |
commit | 10e7123d5551dec0025f70e61604ab57483a6ed2 (patch) | |
tree | 3bb5f6330e85b4c110b65ccf97cb5d137ba96b87 /block | |
parent | dbb301f91fc855dccf9bc42fbc4281d89365906d (diff) | |
download | linux-10e7123d5551dec0025f70e61604ab57483a6ed2.tar.xz |
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>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210818144542.19305-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions