提交 7c83b448 编写于 作者: B Bjørn Mork 提交者: Greg Kroah-Hartman

USB: option: idVendor and idProduct are __le16

The exception is needed on big endian systems too.
Signed-off-by: NBjørn Mork <bjorn@mork.no>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 dbdf6807
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册