From: Johan Hovold Date: Sun, 11 Aug 2013 14:49:22 +0000 (+0200) Subject: USB: adutux: fix big-endian device-type reporting X-Git-Tag: v3.4.87~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7890e19c24abea4cd412e260c2c7c6eeb18ea8a3;p=thirdparty%2Fkernel%2Fstable.git USB: adutux: fix big-endian device-type reporting commit d482b9d558602a9cacab063b1c8779f9b5214da7 upstream. Make sure the reported device-type on big-endian machines is the same as on little-endian ones. Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings Cc: Yang Yingliang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index 284b85461410a..14d9142b63f6c 100644 --- a/drivers/usb/misc/adutux.c +++ b/drivers/usb/misc/adutux.c @@ -829,7 +829,7 @@ static int adu_probe(struct usb_interface *interface, /* let the user know what node this device is now attached to */ dev_info(&interface->dev, "ADU%d %s now attached to /dev/usb/adutux%d\n", - udev->descriptor.idProduct, dev->serial_number, + le16_to_cpu(udev->descriptor.idProduct), dev->serial_number, (dev->minor - ADU_MINOR_BASE)); exit: dbg(2," %s : leave, return value %p (dev)", __func__, dev);