usbip: list: don't list devices attached to vhci_hcd
authorShuah Khan <shuahkh@osg.samsung.com>
Wed, 17 Jan 2018 19:08:03 +0000 (12:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:05:42 +0000 (17:05 +0100)
commitf80079536bb6b2c733776abb19c1f3e8c48923b6
tree4c97957cd012ae6d2aec4aa5cd0ec065829fa5d8
parent4c6fcc3425e19d1f63fd5a7f4f4408ce8f688a48
usbip: list: don't list devices attached to vhci_hcd

commit ef824501f50846589f02173d73ce3fe6021a9d2a upstream.

usbip host lists 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)

Fix it to check and not list devices that are attached to vhci_hcd.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/usbip_list.c