cdrom/gdrom: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Mon, 27 Sep 2021 22:02:27 +0000 (15:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:41:37 +0000 (14:41 -0600)
commitd6ac27c60fec4dc59473e39abf924e430a9ea320
treeb3cee2d6f44761fedc6eabebbf25bef1639073a9
parent4fac63f8a871bc2e38dce4944c9d964a62bac3e6
cdrom/gdrom: 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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/cdrom/gdrom.c