aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPhillip Potter <[email protected]>2025-07-22 23:19:00 +0000
committerJens Axboe <[email protected]>2025-07-23 01:10:17 +0000
commit5ec9d26b78c4eb7c2fab54dcec6c0eb845302a98 (patch)
tree716abfe1da1b2db863a776b0b122f8f58cade5f0 /net/unix/af_unix.c
parentsunvdc: Balance device refcount in vdc_port_mpgroup_check (diff)
downloadkernel-5ec9d26b78c4eb7c2fab54dcec6c0eb845302a98.tar.gz
kernel-5ec9d26b78c4eb7c2fab54dcec6c0eb845302a98.zip
cdrom: Call cdrom_mrw_exit from cdrom_release function
Remove the cdrom_mrw_exit call from unregister_cdrom, as it invokes block commands that can fail due to a NULL pointer dereference from the call happening too late, during the unloading of the driver (e.g. unplugging of USB optical drives). Instead perform the call inside cdrom_release, thus also removing the need for the exit function pointer inside the cdrom_device_info struct. Reported-by: Sergey Senozhatsky <[email protected]> Closes: https://lore.kernel.org/linux-block/uxgzea5ibqxygv3x7i4ojbpvcpv2wziorvb3ns5cdtyvobyn7h@y4g4l5ezv2ec Suggested-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/linux-block/[email protected] Tested-by: Phillip Potter <[email protected]> Signed-off-by: Phillip Potter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions