aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorAleksandr Loktionov <[email protected]>2021-04-22 10:19:23 +0000
committerTony Nguyen <[email protected]>2021-07-01 10:59:21 -0700
commit6c19d772618fea40d9681f259368f284a330fd90 (patch)
tree83bcdf19fef3bcd228e7acd1b1e5b5e0ae3df667 /tools/perf/scripts/python/check-perf-trace.py
parentaf30cbd2f4d6d66a9b6094e0aa32420bc8b20e08 (diff)
igb: Check if num of q_vectors is smaller than max before array access
Ensure that the adapter->q_vector[MAX_Q_VECTORS] array isn't accessed beyond its size. It was fixed by using a local variable num_q_vectors as a limit for loop index, and ensure that num_q_vectors is not bigger than MAX_Q_VECTORS. Fixes: 047e0030f1e6 ("igb: add new data structure for handling interrupts and NAPI") Signed-off-by: Aleksandr Loktionov <[email protected]> Reviewed-by: Grzegorz Siwik <[email protected]> Reviewed-by: Arkadiusz Kubalewski <[email protected]> Reviewed-by: Slawomir Laba <[email protected]> Reviewed-by: Sylwester Dziedziuch <[email protected]> Reviewed-by: Mateusz Palczewski <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions