usb: usbip tool: Fix parse_status()
authorYuyang Du <yuyang.du@intel.com>
Mon, 22 May 2017 10:20:18 +0000 (18:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 08:48:24 +0000 (10:48 +0200)
commite55dea8ede2245918c537b9a252a1269f5d7b78b
treed1cada6c6559989bd867ef11e7743ff470cc5b7c
parentfd92b7deb98a4edd31ffcc2d64cee36103805ff5
usb: usbip tool: Fix parse_status()

In parse_status(), all nports number of idev's are initiated to
0 by memset(), it is simply wrong, because parse_status() reads
the status sys file one by one, therefore, it can only update the
according vhci_driver->idev's for it to parse.

Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Yuyang Du <yuyang.du@intel.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/libsrc/vhci_driver.c
tools/usb/usbip/src/usbip_attach.c