summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2017-08-02 21:06:35 +0900
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-08-03 12:31:17 +0300
commitaca5b9ebd096039657417c321a9252c696b359c2 (patch)
tree385ed06959f042069bf0f4f493a2c21b234f862e /arch/s390
parent40d829fb2ec636b6b4b0cc95e2546ab9aca04cc9 (diff)
downloadlinux-aca5b9ebd096039657417c321a9252c696b359c2.tar.bz2
usb: gadget: udc: renesas_usb3: Fix usb_gadget_giveback_request() calling
According to the gadget.h, a "complete" function will always be called with interrupts disabled. However, sometimes usb3_request_done() function is called with interrupts enabled. So, this function should be held by spin_lock_irqsave() to disable interruption. Also, this driver has to call spin_unlock() to avoid spinlock recursion by this driver before calling usb_gadget_giveback_request(). Reported-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Tested-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Fixes: 746bfe63bba3 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller") Cc: <stable@vger.kernel.org> # v4.5+ Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions