usbip: keep usbip_device sockfd state in sync with tcp_socket
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 26 Jan 2018 18:56:50 +0000 (11:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:07:53 +0000 (11:07 +0100)
commitc276379fa71576b9ae082dd8c1dc00ecb32bdba1
treef3b6d6022ff06047d8187dbb60961cc81a54dbd0
parentd74450a91a4af7bc7406403064e4325513d1fcdf
usbip: keep usbip_device sockfd state in sync with tcp_socket

commit 009f41aed4b3e11e6dc1e3c07377a10c20f1a5ed upstream.

Keep usbip_device sockfd state in sync with tcp_socket. When tcp_socket
is reset to null, reset sockfd to -1 to keep it in sync.

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