diff options
author | Yoshihiro Shimoda <[email protected]> | 2015-03-16 16:36:48 +0900 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2015-03-19 11:28:15 -0500 |
commit | 00f30d29b497577954b20237b405e9d22b5286c2 (patch) | |
tree | 65af4661113d147de8fbbd2bd32479ae10bf83ec /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
parent | 990919cad55a8c38fc73b0a6a0c9e5e4e927a5f8 (diff) |
usb: renesas_usbhs: fix spinlock suspected in a gadget complete function
According to the gadget.h, a "complete" function will always be called
with interrupts disabled. However, sometimes usbhsg_queue_pop() function
is called with interrupts enabled. So, this function should be held by
usbhs_lock() to disable interruption. Also, this driver has to call
spin_unlock() to avoid spinlock recursion by this driver before calling
usb_gadget_giveback_request().
Otherwise, there is possible to cause a spinlock suspected in a gadget
complete function.
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions