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

[PATCH] SCSI MODE_SENSE transfer length fix

Modified the MODE_SENSE write-protect test in sd.c to issue a SCSI
request with the request_bufflen the same size as the MODE_SENSE
command being issued requests.
parent d7cdb541
...@@ -1077,7 +1077,7 @@ sd_read_write_protect_flag(Scsi_Disk *sdkp, char *diskname, ...@@ -1077,7 +1077,7 @@ sd_read_write_protect_flag(Scsi_Disk *sdkp, char *diskname,
SRpnt->sr_data_direction = SCSI_DATA_READ; SRpnt->sr_data_direction = SCSI_DATA_READ;
scsi_wait_req(SRpnt, (void *) cmd, (void *) buffer, scsi_wait_req(SRpnt, (void *) cmd, (void *) buffer,
512, SD_TIMEOUT, MAX_RETRIES); 255, SD_TIMEOUT, MAX_RETRIES);
the_result = SRpnt->sr_result; the_result = SRpnt->sr_result;
......
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