diff options
author | Luis Chamberlain <[email protected]> | 2021-10-15 16:30:21 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-10-18 22:51:34 -0400 |
commit | e9d658c2175b95a8f091b12ddefb271683aeacd9 (patch) | |
tree | e3e72f60c2db138780eacf74837e349ade68ddd4 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 2a7a891f4c406822801ecd676b076c64de072c9e (diff) |
scsi: sr: 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.
Just put the cdrom kref and have the unwinding be done by
sr_kref_release().
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Martin K. Petersen <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions