usb: gadget: composite: Fix corruption when changing configuration
authorBenoit Goby <benoit@android.com>
Wed, 16 May 2012 03:44:33 +0000 (20:44 -0700)
committerBenoit Goby <benoit@android.com>
Tue, 22 May 2012 01:55:25 +0000 (18:55 -0700)
commit8b5855f54d63b3f05b8efe96ffa00ba109a45dcf
treeadf9a85fda67c2393c988e4a96511abde51829b5
parent605a493298348eb2e9e2efc8a6c1b0297c13fe46
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.

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