]> git.baikalelectronics.ru Git - kernel.git/commit
rnbd: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Oct 2021 23:30:27 +0000 (16:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Oct 2021 15:00:56 +0000 (09:00 -0600)
commit5bb1ee89fedaaaf835414646aa52e79cc69248a1
treeb453e4458ac8cd790627d4f5500e0cf36e53cf2c
parent10bf2823342c10a168d6025c1158cf333e8ae2ee
rnbd: 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.

Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211015233028.2167651-9-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-clt.c