OSDN Git Service

virtio_blk: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Wed, 18 Aug 2021 14:45:41 +0000 (16:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 18:55:45 +0000 (12:55 -0600)
commitdbb301f91fc855dccf9bc42fbc4281d89365906d
treed119010fda89414c2b12b585d489b6afefb095bb
parent83cbce9574462c6b4eed6797bdaf18fae6859ab3
virtio_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.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210818144542.19305-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/virtio_blk.c