diff options
author | 2015-11-13 17:23:23 +0300 | |
---|---|---|
committer | 2015-11-13 15:44:40 -0500 | |
commit | 78b7b80cf0abd5ea31d229300b11e9c3a97324ae (patch) | |
tree | 07042cfd1d6f36d2899e9ff83deb7db1d2cf291c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mpt3sas: Fix use sas_is_tlr_enabled API before enabling MPI2_SCSIIO_CONTROL_TLR_ON flag (diff) | |
download | wireguard-linux-78b7b80cf0abd5ea31d229300b11e9c3a97324ae.tar.xz wireguard-linux-78b7b80cf0abd5ea31d229300b11e9c3a97324ae.zip |
mvsas: don't allow negative timeouts
There is a static checker warning here because "val" is controlled by
the user and we have a upper bound on it but allow negative numbers.
"val" appears to be a timeout in usec so this bug probably means we
have a longer timeout than we should. Let's fix this by changing "val"
to unsigned.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions