OSDN Git Service

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)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:57:44 +0000 (13:57 -0700)
commitce87ee4bf33e0f16e049b1af7648b66aeec40a09
treed67a8a994d8131ef8efe4008923c3fedbc25ad9c
parent5ee4893ccd75ae2d0f4ecd2167f3fd3843c27980
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