usb: gadget: composite: Fix corruption when changing configuration
authorBenoit Goby <benoit@android.com>
Wed, 16 May 2012 03:44:33 +0000 (20:44 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Jul 2012 06:05:46 +0000 (11:05 +0530)
commit901d591459db59c09e1544b55b6cf203c4fda1f4
tree88a582ed8d3470abdc0fdfbc0f42d3da28d6d6a1
parent8a9910dee292c062329b81532a193b4351cf0d58
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