usb: gadget: composite: Fix corruption when changing configuration
authorBenoit Goby <benoit@android.com>
Wed, 16 May 2012 03:44:33 +0000 (20:44 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:46 +0000 (13:40 -0700)
commit5c5f9b601a5e1926cd9adea28d309c08b659e852
tree539943648e0122f1c161f650756ed746b3d59560
parent86b24e0e87296330759ddf57a20eb6adeea0ded8
usb: gadget: composite: Fix corruption when changing configuration

Remove the config from the configs list before releasing the spinlock.
Otherwise the other cpu might be processing a SET_CONFIGURATION that
will switch to the configuration that is being released.

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