usb: gadget: storage: check for valid USB_BULK_GET_MAX_LUN_REQUEST
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Fri, 14 Oct 2011 00:46:36 +0000 (17:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 19:51:24 +0000 (11:51 -0800)
commitdb332bc9b26bbd79a37241721cccc9919489d5a9
tree37e48041f7e0eb2f53bedf186e6a633bd546b6d0
parentb7a8d17db9a86db1040862600cf3a02848f83844
usb: gadget: storage: check for valid USB_BULK_GET_MAX_LUN_REQUEST

The latest USB-IF CV tester checks for a valid length for this
request.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
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