aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYuyang Du <[email protected]>2017-05-22 18:20:15 +0800
committerGreg Kroah-Hartman <[email protected]>2017-06-13 10:48:24 +0200
commitc3509715fc9484a48b69a9f0196b728c960840c9 (patch)
tree9f1e1b73a8d366d6a19bf00925a26f1f285ad822 /tools/perf/scripts/python/export-to-postgresql.py
parentb3b51417d0af63fb9a06662dc292200aed9ea53f (diff)
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 0775a9cbc694e8c72 ("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 <[email protected]> Signed-off-by: Yuyang Du <[email protected]> Acked-by: Shuah Khan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions