Luis,
> 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().
Acked-by: Martin K. Petersen
--
Martin K. Petersen Oracle Linu
Luis,
> We never checked for errors on add_disk() as this function returned
> void. Now that this is fixed, use the shiny new error handling.
>
> As with the error handling for device_add() we follow the same logic
> and just put the device so that cleanup is done via the
> scsi_disk_release().
The pull request you sent on Fri, 15 Oct 2021 16:50:54 -0400:
> git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
> tags/for-5.15/dm-fixes
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/dcd619847ca7b1f3123ba35976225ee77b83f959
Thank you!
--
D