linux/tools/usb/usbip/libsrc
Yuyang Du 37e47d5cfe usb: usbip tool: Fix get_nports()
The commit 0775a9cbc6 ("usbip: vhci extension: modifications
to vhci driver") introduced multiple controllers, and nports as a sys
file, and claimed to read the nports from it, but it didn't.

In addition, the get_nports() has been so wrong that even with 8 port
lines for instance, it gets 7 (I am guessing it is due to a '\n' mess).
Nevertheless, we fix it by reading the nports attribute.

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>
2017-04-08 12:17:42 +02:00
..
Makefile.am usbip: tools: Add vudc backend to usbip tools 2016-04-26 15:19:50 -07:00
list.h Replace mentions of "list_struct" to "list_head" 2014-11-20 14:45:15 +01:00
names.c usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
names.h usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
sysfs_utils.c usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
sysfs_utils.h usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00
usbip_common.c usbip: Fix potential format overflow in userspace tools 2017-03-17 13:16:56 +09:00
usbip_common.h usbip: tools: Add vudc backend to usbip tools 2016-04-26 15:19:50 -07:00
usbip_device_driver.c usbip: tools: Add vudc backend to usbip tools 2016-04-26 15:19:50 -07:00
usbip_device_driver.h usbip: tools: Add vudc backend to usbip tools 2016-04-26 15:19:50 -07:00
usbip_host_common.c usbip: Fix potential format overflow in userspace tools 2017-03-17 13:16:56 +09:00
usbip_host_common.h usbip: tools: Extract generic code to be shared with vudc backend 2016-04-26 15:19:50 -07:00
usbip_host_driver.c usbip: tools: Extract generic code to be shared with vudc backend 2016-04-26 15:19:50 -07:00
usbip_host_driver.h usbip: tools: Extract generic code to be shared with vudc backend 2016-04-26 15:19:50 -07:00
vhci_driver.c usb: usbip tool: Fix get_nports() 2017-04-08 12:17:42 +02:00
vhci_driver.h usbip: move usbip userspace code out of staging 2014-08-25 10:38:56 -07:00