]> asedeno.scripts.mit.edu Git - linux.git/commit
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>
Thu, 15 Feb 2018 17:43:57 +0000 (18:43 +0100)
commit009f41aed4b3e11e6dc1e3c07377a10c20f1a5ed
treed99166ff52d5df49fde2d0dec55f32a0ec393e27
parentb2685bdacdaab065c172b97b55ab46c6be77a037
usbip: keep usbip_device sockfd state in sync with tcp_socket

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