aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
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 92ab87a188b7..5ba5c2a9e8e9 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2435,7 +2435,7 @@ static int sd_try_extended_inquiry(struct scsi_device *sdp)
2435 * some USB ones crash on receiving them, and the pages 2435 * some USB ones crash on receiving them, and the pages
2436 * we currently ask for are for SPC-3 and beyond 2436 * we currently ask for are for SPC-3 and beyond
2437 */ 2437 */
2438 if (sdp->scsi_level > SCSI_SPC_2) 2438 if (sdp->scsi_level > SCSI_SPC_2 && !sdp->skip_vpd_pages)
2439 return 1; 2439 return 1;
2440 return 0; 2440 return 0;
2441} 2441}