diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2021-10-16 02:30:26 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-21 18:00:56 +0300 |
commit | 66638f163a2b5c5b462ca38525129b14a20117eb (patch) | |
tree | c33f67a75cc13559fb6e69be98d50f1b2048ebcc /drivers/block/rnbd/rnbd-clt.c | |
parent | 21fd880d3da7564bab68979417cab7408e4f9642 (diff) | |
download | linux-66638f163a2b5c5b462ca38525129b14a20117eb.tar.xz |
um/drivers/ubd_kern: 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.
ubd_disk_register() never returned an error, so just fix
that now and let the caller handle the error condition.
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211015233028.2167651-8-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rnbd/rnbd-clt.c')
0 files changed, 0 insertions, 0 deletions