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:05:45 +0000 (11:05 +0100)
commit8690825ea691c689a1c21fbf5f8000df35cf043b
tree45fca7fa5b0060371b3d5e6cc605fae02c50f3d4
parentf23830925a33186636f229f5d20abd3178aa38e1
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