diff options
author | Josh Boyer <jwboyer@redhat.com> | 2012-02-14 11:01:47 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@redhat.com> | 2012-02-14 11:06:37 -0500 |
commit | 7505efca073a1867229f6498bcb2ccf75d7e5f01 (patch) | |
tree | db2a23bf85e6841c5037f4078254afddcd712b3d /scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch | |
parent | 7d0c6272a412dfbbd576dd11d5d05b06c5d4e0b8 (diff) | |
download | kernel-7505efca073a1867229f6498bcb2ccf75d7e5f01.tar.gz kernel-7505efca073a1867229f6498bcb2ccf75d7e5f01.tar.xz kernel-7505efca073a1867229f6498bcb2ccf75d7e5f01.zip |
Modify sd_revalidate_disk patch to do a WARN_ONCE instead of silently skip
Diffstat (limited to 'scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch')
-rw-r--r-- | scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch b/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch index 492376d78..48db13328 100644 --- a/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch +++ b/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch @@ -12,7 +12,7 @@ SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp, "sd_revalidate_disk\n")); -+ if (!sdkp) ++ if (WARN_ONCE((!sdkp), "Invalid scsi_disk from %p\n", disk)) + goto out; + + sdp = sdkp->device; |