summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2018-06-25 00:08:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-28 19:36:06 +0900
commit957ada71b69e6da4d8131b082c5d57558f7fa415 (patch)
tree93dfca2cd9d8e221cf2d121a975569d7ef232eb9 /samples
parent7375fc9f5f162e783661ee9cdb85a62ec5f6b6d5 (diff)
downloadlinux-stable-957ada71b69e6da4d8131b082c5d57558f7fa415.tar.gz
linux-stable-957ada71b69e6da4d8131b082c5d57558f7fa415.tar.bz2
linux-stable-957ada71b69e6da4d8131b082c5d57558f7fa415.zip
usb: adutux: use irqsave() in USB's 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions