]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: acm: fix the computation of the number of data bits
authorNicolas Boullis <nboullis@debian.org>
Mon, 15 Oct 2012 22:06:23 +0000 (00:06 +0200)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:28:27 +0000 (16:28 -0800)
commit346e6dedc6ae52b0a695816f4d480d2e0c8bd8d3
treed0485404d72e220c4d3d39e693532a3a123b1b5e
parent8efdc8bf4a311a3414217082e7dfe2b78f26d597
usb: acm: fix the computation of the number of data bits

commit 301a29da6e891e7eb95c843af0ecdbe86d01f723 upstream.

The current code assumes that CSIZE is 0000060, which appears to be
wrong on some arches (such as powerpc).

Signed-off-by: Nicolas Boullis <nboullis@debian.org>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/usb/class/cdc-acm.c