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:58:39 +0000 (17:58 +0100)
commit7ec7c9e0abdab8331e99297304c7729423f1c84c
tree14e1c052e3eb9d2f3a8554bd0cdd8d2ee5311949
parent053cef5ae90a8c90752b34be5cba14d955d2b73f
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