aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorKory Maincent <[email protected]>2024-10-15 15:02:54 +0200
committerAndrew Lunn <[email protected]>2024-10-19 15:55:56 -0500
commitf2767a41959e60763949c73ee180e40c686e807e (patch)
treee6cee3faa4fdbe0b5c33700206243284e7879bed /tools/perf/scripts/python/gecko.py
parent07d6bf634bc8f93caf8920c9d61df761645336e2 (diff)
net: pse-pd: Fix out of bound for loop
Adjust the loop limit to prevent out-of-bounds access when iterating over PI structures. The loop should not reach the index pcdev->nr_lines since we allocate exactly pcdev->nr_lines number of PI structures. This fix ensures proper bounds are maintained during iterations. Fixes: 9be9567a7c59 ("net: pse-pd: Add support for PSE PIs") Signed-off-by: Kory Maincent <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Oleksij Rempel <[email protected]> Message-ID: <[email protected]> Signed-off-by: Andrew Lunn <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions