OSDN Git Service

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>
Sun, 27 Nov 2011 01:37:38 +0000 (17:37 -0800)
commit438957f8d4a84daa7fa5be6978ad5897a2e9e5e5
treec4a872aae2865395369f1572288cef3ece388c3b
parentcaca6a03d365883564885f2c1da3e88dcf65d139
staging: usbip: bugfix for deadlock

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci_rx.c