Commit 2ab2178c authored by Jonathan McDowell's avatar Jonathan McDowell Committed by Greg Kroah-Hartman

USB: Fix option_ms regression in 2.6.31-rc2

Commit 32ebbe7b which filters the
SCSI REZERO command in option_ms based on a SCSI INQUIRY with a vendor
of Option breaks my Option Icon 225 (0af0:6971). This device returns a
vendor of ZCOPTION for the ZeroCD device. The following trivial patch
fixes things for me.
Signed-Off-By: default avatarJonathan McDowell <noodles@earth.li>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 04950737
...@@ -118,6 +118,9 @@ static int option_inquiry(struct us_data *us) ...@@ -118,6 +118,9 @@ static int option_inquiry(struct us_data *us)
result = memcmp(buffer+8, "Option", 6); result = memcmp(buffer+8, "Option", 6);
if (result != 0)
result = memcmp(buffer+8, "ZCOPTION", 8);
/* Read the CSW */ /* Read the CSW */
usb_stor_bulk_transfer_buf(us, usb_stor_bulk_transfer_buf(us,
us->recv_bulk_pipe, us->recv_bulk_pipe,
......
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