]> git.baikalelectronics.ru Git - kernel.git/commit
ps3vram: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Oct 2021 23:52:17 +0000 (16:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 30 Oct 2021 17:03:37 +0000 (11:03 -0600)
commite68e04ce613e9a969127ffebf1ba8fc350b8def2
tree3e351dfff22c5045c6c10caee5853f8d0eddfd5f
parentb55b5a1e73fae32dab67acad8486fccdf1f577e1
ps3vram: 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>
Acked-by: Geoff Levand <geoff@infradead.org>
Link: https://lore.kernel.org/r/20211015235219.2191207-12-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ps3vram.c