From: Maulik Mankad Date: Thu, 13 Jan 2011 12:49:56 +0000 (+0530) Subject: usb: gadget: composite: avoid access beyond array max length X-Git-Tag: v2.6.38-rc3~7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c47eb06f08eb970ea9d696bcdb57a175d37b470;p=pandora-kernel.git 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 Cc: David Brownell Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed