aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-08-07 16:01:53 +0300
committerJakub Kicinski <[email protected]>2023-08-08 15:06:15 -0700
commit48d17c517a7af933346bd095e8ccc52b8477b274 (patch)
tree852275332329445102ff6c7c4e2217a0b8bc704a /tools/perf/scripts/python
parentc0256168d16c99f23272790d9ca1a6eb40d50801 (diff)
net: bcmasp: Prevent array undereflow in bcmasp_netfilt_get_init()
The "loc" value comes from the user and it can be negative leading to an an array underflow when we check "priv->net_filters[loc].claimed". Fix this by changing the type to u32. Fixes: c5d511c49587 ("net: bcmasp: Add support for wake on net filters") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Justin Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions