diff options
author | Tzu-En Huang <[email protected]> | 2019-10-25 17:33:44 +0800 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2019-10-31 10:03:50 +0200 |
commit | 18a0696e85fde169e0109aa61d0505b2b935b59d (patch) | |
tree | 12aead66a5bf26ab51374329d0037c2c459677dd /tools/perf/scripts/python/futex-contention.py | |
parent | ff0dfe5b0377c075986e8ac1c1516f5fbdb15b15 (diff) |
rtw88: fix potential read outside array boundary
The level of cckpd is from 0 to 4, and it is the index of
array pd_lvl[] and cs_lvl[]. However, the length of both arrays
are 4, which is smaller than the possible maximum input index.
Enumerate cck level to make sure the max level will not be wrong
if new level is added in future.
Fixes: 479c4ee931a6 ("rtw88: add dynamic cck pd mechanism")
Signed-off-by: Tzu-En Huang <[email protected]>
Signed-off-by: Yan-Hsuan Chuang <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions