diff options
author | 2020-05-08 17:37:20 +0300 | |
---|---|---|
committer | 2020-05-08 18:43:27 -0700 | |
commit | 6d32a5119811d2e9b5caa284181944c6f1f192ed (patch) | |
tree | 3a488f8d1fdcbc2eddfff874ef81ae5004980f01 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | nfp: abm: fix error return code in nfp_abm_vnic_alloc() (diff) | |
download | linux-dev-6d32a5119811d2e9b5caa284181944c6f1f192ed.tar.xz linux-dev-6d32a5119811d2e9b5caa284181944c6f1f192ed.zip |
dpaa2-eth: prevent array underflow in update_cls_rule()
The "location" is controlled by the user via the ethtool_set_rxnfc()
function. This update_cls_rule() function checks for array overflows
but it doesn't check if the value is negative. I have changed the type
to unsigned to prevent array underflows.
Fixes: afb90dbb5f78 ("dpaa2-eth: Add ethtool support for flow classification")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions