linux_dsm_epyc7002/tools/usb
Yuyang Du c3509715fc usb: usbip tool: Check the return of get_nports()
If we get nonpositive number of ports, there is no sense to
continue, then fail gracefully.

In addition, the commit 0775a9cbc6 ("usbip: vhci extension:
modifications to vhci driver") introduced configurable numbers of
controllers and ports, but we have a static port number maximum,
MAXNPORT. If exceeded, the idev array will be overflown. We fix
it by validating the nports to make sure the port number max is
not exceeded.

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-06-13 10:48:24 +02:00
..
ffs-aio-example tools: ffs-aio-example: use endpoint addresses from descriptors 2015-01-15 09:41:49 -06:00
usbip usb: usbip tool: Check the return of get_nports() 2017-06-13 10:48:24 +02:00
.gitignore tools/usb: Add .gitignore file 2017-03-16 18:01:01 +09:00
ffs-test.c tools: usb: ffs-test: add SS descriptors 2017-01-24 11:04:16 +02:00
hcd-tests.sh USB: usbtest - add alignment tests to test script 2011-01-22 19:42:14 -08:00
Makefile Revert "tools: ffs-test: convert to new descriptor format fixing compilation error" 2014-06-27 10:41:00 -05:00
testusb.c tools: usb: testusb: change the default value for length from 512 to 1024 2015-09-27 10:54:31 -05:00