diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2021-09-28 01:01:55 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-18 23:41:37 +0300 |
commit | 637208e74a861d993c3a8eea3f9f1df4415930e0 (patch) | |
tree | c091156d3b77d727ba04a74333ebc7e248aec989 /drivers/cdrom | |
parent | 54494d10031b4bc043af43251bff0d10cca6857a (diff) | |
download | linux-637208e74a861d993c3a8eea3f9f1df4415930e0.tar.xz |
block/sx8: 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.
A completion is used to notify the initial probe what is
happening and so we must defer error handling on completion.
Do this by remembering the error and using the shared cleanup
function.
The tags are shared and so are hanlded later for the
driver already.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions