diff options
author | Michael Wileczka <mikewileczka@yahoo.com> | 2010-08-18 07:14:37 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-26 16:46:24 -0700 |
commit | 5ce775be7b38ee371c389b28efebca141fabc133 (patch) | |
tree | 3aa8f1d75bb1da0f68e6a23f9ee17208006b348b /drivers/usb | |
parent | cdead9a39eb906aa6fde0996f5274f42c603b259 (diff) | |
download | kernel-crypto-5ce775be7b38ee371c389b28efebca141fabc133.tar.gz kernel-crypto-5ce775be7b38ee371c389b28efebca141fabc133.tar.xz kernel-crypto-5ce775be7b38ee371c389b28efebca141fabc133.zip |
USB: ftdi_sio: fix endianess of max packet size
commit d1ab903d2552b2362339b19203c7f01c797cb316 upstream.
The USB max packet size (always little-endian) was not being byte
swapped on big-endian systems.
Applicable since [USB: ftdi_sio: fix hi-speed device packet size calculation] approx 2.6.31
Signed-off-by: Michael Wileczka <mikewileczka@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index eb12d9b096b..e04a41613fb 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1376,7 +1376,7 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port) } /* set max packet size based on descriptor */ - priv->max_packet_size = ep_desc->wMaxPacketSize; + priv->max_packet_size = le16_to_cpu(ep_desc->wMaxPacketSize); dev_info(&udev->dev, "Setting MaxPacketSize %d\n", priv->max_packet_size); } |