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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 76b4d14c0b3f..31c9685ebc5a 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1333,6 +1333,12 @@ sd_read_cache_type(struct scsi_disk *sdkp, char *diskname,
1333 if (!scsi_status_is_good(res)) 1333 if (!scsi_status_is_good(res))
1334 goto bad_sense; 1334 goto bad_sense;
1335 1335
1336 if (!data.header_length) {
1337 modepage = 6;
1338 printk(KERN_ERR "%s: missing header in MODE_SENSE response\n",
1339 diskname);
1340 }
1341
1336 /* that went OK, now ask for the proper length */ 1342 /* that went OK, now ask for the proper length */
1337 len = data.length; 1343 len = data.length;
1338 1344