]> git.baikalelectronics.ru Git - kernel.git/commit
usb: core: remove local_irq_save() around ->complete() handler
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 10 Sep 2018 09:20:00 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 17:35:46 +0000 (19:35 +0200)
commit7eb78a1df8ed4e02e0c15fc1044571e925244fad
tree74733668ae8a526023e7be641b77ad562d387e9b
parent194185680426216b798d3ca2b5c82d6bd908b6b2
usb: core: remove local_irq_save() around ->complete() handler

The core disabled interrupts before invocation the ->complete handler
because the handler might have expected that interrupts are disabled.

All handlers were audited and use proper locking now. With it, the core
code no longer needs to disable interrupts before invoking the
->complete handler.
Remove local_irq_save() statement before invoking the ->complete
handler.

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>
drivers/usb/core/hcd.c