usbip: keep usbip_device sockfd state in sync with tcp_socket
commit52718d4979404e8fc1066ec52f99df40002c1149
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 26 Jan 2018 18:56:50 +0000 (26 11:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:15:43 +0000 (25 11:15 +0100)
tree5b699ac060ba5ccd457054a803462fc7a10314a5
parentf0537b3962ad97c903fbe0067f974e98f6769206
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