usb: usbip: Fix possible deadlocks reported by lockdep
commit18e905a839ed54b135b00e9d9c9dee2ed6908a08
authorAndrew Goodbody <andrew.goodbody@cambrionix.com>
Tue, 2 Feb 2016 17:36:39 +0000 (2 17:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jan 2018 11:06:11 +0000 (31 12:06 +0100)
tree52f693dafd8f2a966b59f1afe0fa8d8d5010cb20
parent9af75003499c7a441e5a483220f5d2cf65861e73
usb: usbip: Fix possible deadlocks reported by lockdep

commit 21619792d1eca7e772ca190ba68588e57f29595b upstream.

Change spin_lock calls to spin_lock_irqsave to prevent
attmpted recursive lock taking in interrupt context.

This patch fixes Bug 109351
  https://bugzilla.kernel.org/show_bug.cgi?id=109351

Signed-off-by: Andrew Goodbody <andrew.goodbody@cambrionix.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/usbip_event.c
drivers/usb/usbip/vhci_hcd.c
drivers/usb/usbip/vhci_rx.c
drivers/usb/usbip/vhci_sysfs.c
drivers/usb/usbip/vhci_tx.c