drivers: usb: gadget: handle NULL descriptors in composite config_buf
authorJared Suttles <jared.suttles@motorola.com>
Thu, 30 Jul 2009 21:13:27 +0000 (16:13 -0500)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:08:53 +0000 (09:08 -0700)
commit646bb86a454b23d4792883a8d1fd83a87a333f0c
tree98a824d3840f9ae65ce1769b7f052d8c0a54b447
parent7f0d7bd310cad696f8a17e270f174ffcd1eb4f14
drivers: usb: gadget: handle NULL descriptors in composite config_buf

This fixes a problem in enumeration after a gadget function is removed.

Submitted on behalf of RaviKumar Vembu <ravi.v@motorola.com>

Signed-off-by: Jared Suttles <jared.suttles@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/composite.c