Bluetooth: btusb: use irqsave() in URB's complete callback
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 19 Jun 2018 21:56:57 +0000 (23:56 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Jul 2018 10:36:21 +0000 (12:36 +0200)
commita5e50d5b127562f3eef5438f84b1066eeda4d7c6
tree6355e42e85e3da80dcb69481ae47809c29098217
parent45ae68b8cfc25bdbffc11248001c47ab1b76ff6e
Bluetooth: btusb: use irqsave() in URB'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.

Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c