diff options
| author | Matthew Dharm <mdharm-usb@one-eyed-alien.net> | 2002-07-28 04:00:18 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-28 04:00:18 -0700 |
| commit | c5155e55114e187870f626ea02115fdad697a1fc (patch) | |
| tree | 096e70ec14741265117aa14de4ebf4ae5123a703 | |
| parent | d7cdb541ad28b6f91c423b66065a17e6a3a27e14 (diff) | |
[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.
| -rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index f6dd5107974d..6f7be79667d3 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -1077,7 +1077,7 @@ sd_read_write_protect_flag(Scsi_Disk *sdkp, char *diskname, SRpnt->sr_data_direction = SCSI_DATA_READ; scsi_wait_req(SRpnt, (void *) cmd, (void *) buffer, - 512, SD_TIMEOUT, MAX_RETRIES); + 255, SD_TIMEOUT, MAX_RETRIES); the_result = SRpnt->sr_result; |
