]> git.baikalelectronics.ru Git - kernel.git/commit
block/brd: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Oct 2021 23:52:07 +0000 (16:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 30 Oct 2021 17:07:40 +0000 (11:07 -0600)
commit96ae8bfc08225da2a54e5b2a35bfe92ea4c96329
tree974ab70848c421f3247c4dce1abe418e2bcf603d
parente68e04ce613e9a969127ffebf1ba8fc350b8def2
block/brd: 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.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211015235219.2191207-2-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c