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>
Tue, 14 Jun 2011 16:09:06 +0000 (09:09 -0700)
commit0130a0e683e4266bda24c27c246dc1adaa6fad9a
tree047c3986dffe9fa4d6d1afccce0adb9af4ffd866
parent0a4c12d4fa0fdec17cd9347ea9f70453cfaffe14
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