usb: gadget: Fix usb string id allocation
authorBenoit Goby <benoit@android.com>
Fri, 20 Jan 2012 22:42:41 +0000 (14:42 -0800)
committerBenoit Goby <benoit@android.com>
Wed, 25 Jan 2012 21:53:58 +0000 (13:53 -0800)
commita6ccb73389f3df11e788bf84254a7b27c430f949
tree3e77a92a45ae440d2952519afad196038c42272e
parent87159de9c30dab02b84cbaffa7498140d4ebc1a1
usb: gadget: Fix usb string id allocation

Don't reset next_string_id every time the gadget is enabled, this makes
the next strings allocated overwrite strings allocated at probe time.
Instead, fix rndis not to allocate new string ids on every config bind.

Change-Id: Ied28ee416bb6f00c434c34176fe5b7f0dcb2b2d4
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/android.c
drivers/usb/gadget/f_rndis.c
drivers/usb/gadget/rndis.c