]> git.baikalelectronics.ru Git - kernel.git/commit
pktcdvd: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Mon, 27 Sep 2021 22:01:49 +0000 (15:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:41:36 +0000 (14:41 -0600)
commita5ef289166cb4563fd8bdde76030179ffbfe62dd
treed6ebc2ebe890d2d957cf865c130431c369c2158b
parent1c57971f702ec6bea48b279153ea96c337557695
pktcdvd: 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 out_mem2 error label already does what we need so
re-use that.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/pktcdvd.c