Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c83b448 authored by Bjørn Mork's avatar Bjørn Mork Committed by Greg Kroah-Hartman
Browse files

USB: option: idVendor and idProduct are __le16



The exception is needed on big endian systems too.

Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dbdf6807
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1358,8 +1358,8 @@ 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 &&
	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;