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>
Wed, 2 May 2018 14:59:53 +0000 (07:59 -0700)
commit6246535bd77abf0d0b4684eaed373676d9e8587f
tree9de7ab9afec3f622deefba1306e0813b455c8803
parent617d7a47bcf30271c858254a3a293891355199ca
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