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)
commitce7b6121851c72d661134d113a78161095e0ae73
treeab4ad1d1fb8af3e722b30904ddbc80daa14170c1
parentdb332bc9b26bbd79a37241721cccc9919489d5a9
usb: gadget: storage: check for valid USB_BULK_RESET_REQUEST wLength

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>
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/file_storage.c
This page took 0.025179 seconds and 5 git commands to generate.