linux/tools/usb
Shuah Khan ef54cf0c60 usbip: prevent bind loops on devices attached to vhci_hcd
usbip host binds to devices attached to vhci_hcd on the same server
when user does attach over localhost or specifies the server as the
remote.

usbip attach -r localhost -b busid
or
usbip attach -r servername (or server IP)

Unbind followed by bind works, however device is left in a bad state with
accesses via the attached busid result in errors and system hangs during
shutdown.

Fix it to check and bail out if the device is already attached to vhci_hcd.

Cc: stable@vger.kernel.org
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-22 15:34:37 +01:00
..
ffs-aio-example License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usbip usbip: prevent bind loops on devices attached to vhci_hcd 2018-01-22 15:34:37 +01:00
.gitignore tools/usb: Add .gitignore file 2017-03-16 18:01:01 +09:00
ffs-test.c tools: usb: ffs-test: add SS descriptors 2017-01-24 11:04:16 +02:00
hcd-tests.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
testusb.c tools: usb: testusb: update default vary for superspeed 2017-06-02 11:22:27 +03:00