]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: composite: fix req->length in composite_setup()
authorMaulik Mankad <maulik@ti.com>
Tue, 22 Feb 2011 13:38:42 +0000 (19:08 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Feb 2011 19:36:19 +0000 (11:36 -0800)
commit2edb11cbac95231f66f1239b3ca26bdc0967183a
treecafb920f1003440a4b4766c43f31aec922fadd21
parent3b29b68b1627781b5eecb581d3b9d5f0043a72f2
usb: gadget: composite: fix req->length in composite_setup()

When USB CV MSC tests are run on f_mass_storage gadget
Bulk Only Mass Storage Reset fails since req->length
is set to USB_BUFSIZ=1024 in composite_setup().

Initialize req->length to zero to fix this.

Signed-off-by: Maulik Mankad <maulik@ti.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/composite.c