USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB...
commit5256ca41663c848ac24783a5161a97730a21696c
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 14:11:59 +0000 (16 15:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:19:02 +0000 (3 09:19 -0800)
treec71feea294099586e8158994a78008464b98b74f
parentf1abac982c49f35615f47ff1f94a8ca5ba962bd8
USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB core

commit 655e247daf52b202a6c2d0f8a06dd2051e756ce4 upstream.

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