patch "USB: chaoskey: fix Alea quirk on big-endian hosts" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
USB: chaoskey: fix Alea quirk on big-endian hosts
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
63afd5cc78775018ea2dec4004428dafa5283e93Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Thu, 11 May 2017 11:36:01 +0200
Subject: USB: chaoskey: fix Alea quirk on big-endian hosts
Add missing endianness conversion when applying the Alea timeout quirk.
Found using sparse:
warning: restricted __le16 degrades to integer
--- drivers/usb/misc/chaoskey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/misc/chaoskey.c +1 -1
@@ -192,7 +192,7 @@ static int chaoskey_probe(struct usb_interface *interface, dev->in_ep = in_ep; -if (udev->descriptor.idVendor !=ALEA_VENDOR_ID ) +if (le16_to_cpu (udev->descriptor.idVendor) !=ALEA_VENDOR_ID ) dev->reads_started =1 ; dev->size = size;
Signature · 1 line
2.13.0