USB: gadget: Read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 6 Aug 2009 23:09:51 +0000 (16:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:32 +0000 (06:46 -0700)
commit417b57b3e4e34df07a2aceaf75baffeacdd9385f
tree0e0454a8f1cf0a40633dd42a94da9935573bf292
parentd0defb855c8504c49b92bdc0203689ce9b4cf7ba
USB: gadget: Read buffer overflow

Check whether index is within bounds before testing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/composite.c