]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usbip: vhci_hcd: only return urb at enqueue when served
authorIgor Kotrasinski <i.kotrasinsk@samsung.com>
Mon, 21 Sep 2015 09:30:44 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 09:59:03 +0000 (10:59 +0100)
commit03b0a52822fec8fba351fd472f3adda6fd760e77
treec2f6f91981e0f2defa1bef065e741fff5dd65a83
parent0c43e9d835b003d862a5f76e3affcc1f973fb3c0
usbip: vhci_hcd: only return urb at enqueue when served

We handle USB_REQ_SET_ADDRESS at enqueue, so we want to perform
cleanup and giveback the urb. We should not call usb_hcd_giveback_urb
when we're cleaning up after a failed enqueue, though.

Only giveback the urb at cleanup when we claim to have served it.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_hcd.c