Maulik Mankad 3c47eb06f0 usb: gadget: composite: avoid access beyond array max length
One of the USB CV MSC tests issues Get Max LUN request with
invalid wIndex (wIndex = 65535) parameter.

Add proper handling to prevent array index out of bounds issue.

Signed-off-by: Maulik Mankad <maulik@ti.com>
Cc: David Brownell <david-b@pacbell.net>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-22 18:53:27 -08:00
..
2010-11-11 06:19:35 -08:00
2010-12-16 10:05:06 -08:00
2010-12-10 14:29:43 -08:00
2010-10-29 04:16:28 -04:00
2010-12-10 14:29:43 -08:00
2010-12-10 14:29:43 -08:00
2010-09-03 17:33:40 -07:00
2010-12-10 14:29:43 -08:00