USB: gadget: android: mass_storage: Use spin_lock_irqsave/spin_unlock_irqrestore
authorArve Hjønnevåg <arve@android.com>
Thu, 11 Dec 2008 04:01:15 +0000 (20:01 -0800)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:31 +0000 (17:49 -0700)
commit372a94c2ed0f4bc30e3efb9ef6544e234816b297
tree586f605647b6d04cf516ab80fb8f008619bfb432
parent2673694e6eed5e03596de3b539a5d63cbbd1aec5
USB: gadget: android: mass_storage: Use spin_lock_irqsave/spin_unlock_irqrestore

The old code did not allways disable interrupts when called from thread
context, but tried to lock the same spinlock from interrupt context.

This was merged from a change to drivers/usb/function/mass_storage.c
in the android-msm-2.6.29 branch.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_mass_storage_tmp.c