Modify sd_revalidate_disk patch to do a WARN_ONCE instead of silently skip

This commit is contained in:
Josh Boyer 2012-02-14 11:01:47 -05:00
parent 7d0c6272a4
commit 7505efca07
2 changed files with 2 additions and 1 deletions

View File

@ -2350,6 +2350,7 @@ fi
- Add patch to fix RCU usage during cpu idle (rhbz 789641) - Add patch to fix RCU usage during cpu idle (rhbz 789641)
- Add patch to fix mce rcu splat (rhbz 789644) - Add patch to fix mce rcu splat (rhbz 789644)
- Patch to enable CONFIG_KEYS_COMPAT on s390 from David Howells (rhbz 790367) - Patch to enable CONFIG_KEYS_COMPAT on s390 from David Howells (rhbz 790367)
- Modify sd_revalidate_disk patch to do a WARN_ONCE instead of silently skip
* Tue Feb 14 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git5.1 * Tue Feb 14 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git5.1
- Linux 3.3-rc3-git5 (upstream ce5afed937f0a823d3b00c9459409c3f5f2fbd5d) - Linux 3.3-rc3-git5 (upstream ce5afed937f0a823d3b00c9459409c3f5f2fbd5d)

View File

@ -12,7 +12,7 @@
SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp, SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp,
"sd_revalidate_disk\n")); "sd_revalidate_disk\n"));
+ if (!sdkp) + if (WARN_ONCE((!sdkp), "Invalid scsi_disk from %p\n", disk))
+ goto out; + goto out;
+ +
+ sdp = sdkp->device; + sdp = sdkp->device;