diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2018-06-25 01:08:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 13:36:06 +0300 |
commit | 957ada71b69e6da4d8131b082c5d57558f7fa415 (patch) | |
tree | 93dfca2cd9d8e221cf2d121a975569d7ef232eb9 /drivers/usb/misc/iowarrior.c | |
parent | 7375fc9f5f162e783661ee9cdb85a62ec5f6b6d5 (diff) | |
download | linux-957ada71b69e6da4d8131b082c5d57558f7fa415.tar.xz |
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 'drivers/usb/misc/iowarrior.c')
0 files changed, 0 insertions, 0 deletions