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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Oct 2012 20:45:49 +0000 (13:45 -0700)
commit301a29da6e891e7eb95c843af0ecdbe86d01f723
tree06a394d2ee61a08f7ba07741eea2ff43fa67a82e
parent6e1babb3ff2651376f2e9843569fcb39cfe4686b
usb: acm: fix the computation of the number of data bits

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c