usbip: keep usbip_device sockfd state in sync with tcp_socket

commit 009f41aed4 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.16: adjust filenames]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Shuah Khan 2018-01-26 11:56:50 -07:00 • committed by Ben Hutchings
commit c6e9f50df8
2 changed files with 5 additions and 0 deletions