diff options
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 58c62ff42ab3..7955bc226125 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -1573,6 +1573,8 @@ static int read_capacity_10(struct scsi_disk *sdkp, struct scsi_device *sdp, | |||
1573 | 1573 | ||
1574 | static int sd_try_rc16_first(struct scsi_device *sdp) | 1574 | static int sd_try_rc16_first(struct scsi_device *sdp) |
1575 | { | 1575 | { |
1576 | if (sdp->host->max_cmd_len < 16) | ||
1577 | return 0; | ||
1576 | if (sdp->scsi_level > SCSI_SPC_2) | 1578 | if (sdp->scsi_level > SCSI_SPC_2) |
1577 | return 1; | 1579 | return 1; |
1578 | if (scsi_device_protection(sdp)) | 1580 | if (scsi_device_protection(sdp)) |