staging: usbip: bugfix for deadlock
authorBart Westgeest <bart@elbrys.com>
Tue, 1 Nov 2011 19:01:28 +0000 (15:01 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:39 +0000 (08:52 -0800)
commit0a4527cdb58e712456e9c9e491df37fadd2d9256
treebc57f4e470c0c244f1ac69911617220d38fccef0
parentf90312c8cf03b2294f6840c7dc01236838896acc
staging: usbip: bugfix for deadlock

commit 438957f8d4a84daa7fa5be6978ad5897a2e9e5e5 upstream.

Interrupts must be disabled prior to calling usb_hcd_unlink_urb_from_ep.
If interrupts are not disabled, it can potentially lead to a deadlock.
The deadlock is readily reproduceable on a slower (ARM based) device
such as the TI Pandaboard.

Signed-off-by: Bart Westgeest <bart@elbrys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci_rx.c