Commit 7b78abd7 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix endian bug found by sparse in freecom usb-storage driver.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 2c9ac98a
......@@ -290,7 +290,7 @@ int freecom_transport(struct scsi_cmnd *srb, struct us_data *us)
case REQUEST_SENSE: /* 16 or 18 bytes? spec says 18, lots of devices only have 16 */
case MODE_SENSE:
case MODE_SENSE_10:
length = fst->Count;
length = le16_to_cpu(fst->Count);
break;
default:
length = srb->request_bufflen;
......
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