Skip to content

Commit

Permalink
USB: option: idVendor and idProduct are __le16
Browse files Browse the repository at this point in the history
The exception is needed on big endian systems too.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Bjørn Mork authored and Greg Kroah-Hartman committed Oct 31, 2012
1 parent dbdf680 commit 7c83b44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/serial/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,9 +1358,9 @@ static int option_probe(struct usb_serial *serial,
* Don't bind network interface on Samsung GT-B3730, it is handled by
* a separate module.
*/
if (dev_desc->idVendor == SAMSUNG_VENDOR_ID &&
dev_desc->idProduct == SAMSUNG_PRODUCT_GT_B3730 &&
iface_desc->bInterfaceClass != USB_CLASS_CDC_DATA)
if (dev_desc->idVendor == cpu_to_le16(SAMSUNG_VENDOR_ID) &&
dev_desc->idProduct == cpu_to_le16(SAMSUNG_PRODUCT_GT_B3730) &&
iface_desc->bInterfaceClass != USB_CLASS_CDC_DATA)
return -ENODEV;

/* Store device id so we can use it during attach. */
Expand Down

0 comments on commit 7c83b44

Please sign in to comment.