usbip: vhci_hcd: Fix usb device and sockfd leaks
authorShuah Khan <shuahkh@osg.samsung.com>
Mon, 2 Apr 2018 20:52:32 +0000 (14:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 22:13:04 +0000 (15:13 -0700)
commitc0182ba5accbb1d8c7cc84a25cadb6fcf0132c98
tree4e00fde793c67d5a9995eb9231b402a9783f8bc5
parent039cb1bb0b8904d3105150bb6908d05de7202111
usbip: vhci_hcd: Fix usb device and sockfd leaks

commit 9020a7efe537856eb3e826ebebdf38a5d07a7857 upstream.

vhci_hcd fails to do reset to put usb device and sockfd in the
module remove/stop paths. Fix the leak.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/usbip_common.h