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)
committerMike Lockwood <lockwood@android.com>
Sat, 3 Apr 2010 19:33:54 +0000 (15:33 -0400)
commit3274abc33ec2c170acd6fd2732c271ad9dd0b17f
tree5a8a1db3ed55b5863c78a6a9a2892c4df3f3c652
parent0bf551684025a5f0f3c9aac694cd5cf73706cb70
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.c