mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
USB: mos7840: fix big-endian probe
commitd551ec9b69upstream. Fix bug in device-type detection on big-endian machines originally introduced by commit0eafe4de("USB: serial: mos7840: add support for MCS7810 devices") which always matched on little-endian product ids. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0179a37034
commit
d802afca86
@@ -2208,7 +2208,7 @@ static int mos7810_check(struct usb_serial *serial)
|
||||
static int mos7840_probe(struct usb_serial *serial,
|
||||
const struct usb_device_id *id)
|
||||
{
|
||||
u16 product = serial->dev->descriptor.idProduct;
|
||||
u16 product = le16_to_cpu(serial->dev->descriptor.idProduct);
|
||||
u8 *buf;
|
||||
int device_type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user