aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorAlexander Wetzel <[email protected]>2024-03-20 21:30:32 +0000
committerMartin K. Petersen <[email protected]>2024-03-25 19:41:07 +0000
commit27f58c04a8f438078583041468ec60597841284d (patch)
treeb577c903f5887be0875f9bc597ab4efaa96c18ee /scripts/gcc-plugins/gcc-common.h
parentMerge branch '6.9/scsi-queue' into 6.9/scsi-fixes (diff)
downloadkernel-27f58c04a8f438078583041468ec60597841284d.tar.gz
kernel-27f58c04a8f438078583041468ec60597841284d.zip
scsi: sg: Avoid sg device teardown race
sg_remove_sfp_usercontext() must not use sg_device_destroy() after calling scsi_device_put(). sg_device_destroy() is accessing the parent scsi_device request_queue which will already be set to NULL when the preceding call to scsi_device_put() removed the last reference to the parent scsi_device. The resulting NULL pointer exception will then crash the kernel. Link: https://lore.kernel.org/r/[email protected] Fixes: db59133e9279 ("scsi: sg: fix blktrace debugfs entries leakage") Cc: [email protected] Signed-off-by: Alexander Wetzel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions