commit | 3c47eb06f08eb970ea9d696bcdb57a175d37b470 | [log] [tgz] |
---|---|---|
author | Maulik Mankad <maulik@ti.com> | Thu Jan 13 18:19:56 2011 +0530 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Sat Jan 22 18:53:27 2011 -0800 |
tree | 9cc8df6c428c7973caa5b28e19ffc75622ef2c6a | |
parent | d14fc1a74e846d7851f24fc9519fe87dc12a1231 [diff] |
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>