usb: gadget: storage: check for valid USB_BULK_RESET_REQUEST wLength
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Wed, 26 Oct 2011 19:07:54 +0000 (12:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 19:51:24 +0000 (11:51 -0800)
The USB-IF CV compliance tester is getting stricter, and it would
be valid for it to fail a mass-storage device that accepts an
invalid USB_BULK_RESET_REQUEST request. Although it doesn't do
that yet, let's be proactive and fix that now.

Suggested by Alan Stern.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found