staging: usbip: vhci: give back URBs from in-flight unlink requests
authorMax Vozeler <max@vozeler.com>
Wed, 12 Jan 2011 13:02:01 +0000 (15:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 00:01:49 +0000 (16:01 -0800)
commitb92a5e23737172c52656a090977408a80d7f06d1
tree1232bd42923d3cc4e31bafb8fa92c5d1d214be55
parent7606ee8aa33287dd3e6eb44c78541b87a413a325
staging: usbip: vhci: give back URBs from in-flight unlink requests

If we never received a RET_UNLINK because the TCP
connection broke the pending URBs still need to be
unlinked and given back.

Previously processes would be stuck trying to kill
the URB even after the device was detached.

Signed-off-by: Max Vozeler <max@vozeler.com>
Tested-by: Mark Wehby <MWehby@luxotticaRetail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci.h
drivers/staging/usbip/vhci_hcd.c
drivers/staging/usbip/vhci_rx.c