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)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:02 +0000 (21:38 -0800)
commitf7e1585f36d0e39725a6767feb9400bcbe868f71
tree4c4600f96aec2b8758219a18f1eedbe7c256fd32
parent30a2bd6c1cf5a065e2eff9bf0c19fbb3347b079d
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