]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB...
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 14:11:59 +0000 (15:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:19:58 +0000 (12:19 -0800)
commit256882185d28f34dfe88bbeee030c8c9d05887de
tree9b2e12717ef616b99301b79396b44961d36b5ec3
parente9cab31e432c311f626a6e71af16c9a0b8494912
USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB core

As it turns out, there was a mismatch between the allocated inbuf size
(desc->bMaxPacketSize0, typically something like 64) and the length we
specified in the URB (desc->wMaxCommand, typically something like 2048)

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c