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

[PATCH] SCSI INQUIRY transfer length fix

Fixed one of the INQUIRY commands used for probing SCSI devices.  This
badly-formed command was trapped by the usb-storage driver BUG_ON()
which is designed to stop command with a badly formed transfer_length
field.
parent 06829ded
......@@ -715,7 +715,7 @@ static int scan_scsis_single(unsigned int channel, unsigned int dev,
scsi_wait_req (SRpnt, (void *) scsi_cmd,
(void *) scsi_result,
256, SCSI_TIMEOUT+4*HZ, 3);
scsi_cmd[4], SCSI_TIMEOUT+4*HZ, 3);
/* assume successful */
}
SDpnt->inquiry_len = possible_inq_resp_len;
......
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