]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- fix discovering of some USB drives
authorKacper Kornet <draenog@pld-linux.org>
Tue, 6 Aug 2013 21:06:32 +0000 (22:06 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Tue, 6 Aug 2013 21:08:33 +0000 (22:08 +0100)
kernel-small_fixes.patch

index 392d1212b54690cc4ea01e399c80095dce704114..2b0f82db5682493080513837ec3d1fe6b473d89b 100644 (file)
@@ -46,3 +46,27 @@ index 7a0c800..ec5ebbb 100644
        SET_ETHTOOL_OPS(dev, &rtl8169_ethtool_ops);
        dev->watchdog_timeo = RTL8169_TX_TIMEOUT;
  
+[PATCH] SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set
+
+If a device has the skip_vpd_pages flag set we should simply fail the
+scsi_get_vpd_page() call.
+
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Acked-by: Alan Stern <stern@rowland.harvard.edu>
+Tested-by: Stuart Foster <smf.linux@ntlworld.com>
+Cc: stable@vger.kernel.org
+
+diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
+index 3b1ea34..eaa808e 100644
+--- a/drivers/scsi/scsi.c
++++ b/drivers/scsi/scsi.c
+@@ -1031,6 +1031,9 @@
+ {
+       int i, result;
++      if (sdev->skip_vpd_pages)
++          goto fail;
++
+       /* Ask for all the pages supported by this device */
+       result = scsi_vpd_inquiry(sdev, buf, 0, buf_len);
+       if (result)
This page took 0.064604 seconds and 4 git commands to generate.