Commit cc75cd5e authored by Matthew Dharm's avatar Matthew Dharm Committed by Linus Torvalds

[PATCH] Fix SCSI mode sense size

I'm suprised that this didn't cause errors for more people -- a
MODE_SENSE request for 128 bytes with a stated buffer length of 24
bytes.

Fix: Make the buffer length match the size of the request.
parent 56338b9f
......@@ -916,7 +916,7 @@ sd_read_cache_type(Scsi_Disk *sdkp, char *diskname,
SRpnt->sr_data_direction = SCSI_DATA_READ;
scsi_wait_req(SRpnt, (void *) cmd, (void *) buffer,
24, SD_TIMEOUT, MAX_RETRIES);
128, SD_TIMEOUT, MAX_RETRIES);
the_result = SRpnt->sr_result;
retries--;
......
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