summaryrefslogtreecommitdiff
path: root/drivers/usb/usb-skeleton.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2018-06-25 00:08:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-28 19:36:06 +0900
commit31adcb0a9cba3b7e3560c6364aaa8d0060764e12 (patch)
treebaff25840aab0c17f94c565548763afc81708f1e /drivers/usb/usb-skeleton.c
parent4685be25a19078de6301f50bde7a755483805269 (diff)
downloadlinux-31adcb0a9cba3b7e3560c6364aaa8d0060764e12.tar.gz
linux-31adcb0a9cba3b7e3560c6364aaa8d0060764e12.tar.bz2
linux-31adcb0a9cba3b7e3560c6364aaa8d0060764e12.zip
usb: core: use irqsave() in sg_complete() complete callback
The USB completion callback does not disable interrupts while acquiring the lock. We want to remove the local_irq_disable() invocation from __usb_hcd_giveback_urb() and therefore it is required for the callback handler to disable the interrupts while acquiring the lock. The callback may be invoked either in IRQ or BH context depending on the USB host controller. Use the _irqsave() variant of the locking primitives. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/usb-skeleton.c')
0 files changed, 0 insertions, 0 deletions