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>
Mon, 22 Jan 2018 14:34:37 +0000 (15:34 +0100)
commitef824501f50846589f02173d73ce3fe6021a9d2a
treec2c42fd00cc2af729995a9d89d99860dbcb86c4c
parentef54cf0c600fb8f5737fb001a9e357edda1a1de8
usbip: list: don't list devices attached to vhci_hcd

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.

Cc: stable@vger.kernel.org
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