summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2012-03-12 17:13:31 +0100
committerGreg Kroah-Hartman2012-03-12 17:13:31 +0100
commitf7a0d426f3e7ec321b8037238b6426566df36edb (patch)
tree505e7d0264500db94534f1226684f78af7757289 /drivers/scsi/sd.c
parentLinux 3.3-rc7 (diff)
parentUSB: serial: use module_driver() macro (diff)
downloadkernel-qcow2-linux-f7a0d426f3e7ec321b8037238b6426566df36edb.tar.gz
kernel-qcow2-linux-f7a0d426f3e7ec321b8037238b6426566df36edb.tar.xz
kernel-qcow2-linux-f7a0d426f3e7ec321b8037238b6426566df36edb.zip
Merge 3.3-rc7 into usb-next
This resolves the conflict with drivers/usb/host/ehci-fsl.h that happened with changes in Linus's and this branch at the same time. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index c691fb50e6cb..d173b90b25e9 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2349,7 +2349,7 @@ static int sd_try_extended_inquiry(struct scsi_device *sdp)
* some USB ones crash on receiving them, and the pages
* we currently ask for are for SPC-3 and beyond
*/
- if (sdp->scsi_level > SCSI_SPC_2)
+ if (sdp->scsi_level > SCSI_SPC_2 && !sdp->skip_vpd_pages)
return 1;
return 0;
}