Commit 81c887ca authored by James Bottomley's avatar James Bottomley

Fix scsi_lib MODE SENSE(6) bug

parent bcf2227c
...@@ -1435,8 +1435,8 @@ __scsi_mode_sense(struct scsi_request *sreq, int dbd, int modepage, ...@@ -1435,8 +1435,8 @@ __scsi_mode_sense(struct scsi_request *sreq, int dbd, int modepage,
} else { } else {
data->length = buffer[0] + 1; data->length = buffer[0] + 1;
data->medium_type = buffer[1]; data->medium_type = buffer[1];
data->device_specific = buffer[3]; data->device_specific = buffer[2];
data->block_descriptor_length = buffer[4]; data->block_descriptor_length = buffer[3];
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment