diff options
author | Tzu-En Huang <tehuang@realtek.com> | 2019-10-25 12:33:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 10:22:59 +0300 |
commit | 6fd06c287fb1064dbec7b13588dfaa4b1e899787 (patch) | |
tree | 10d43013a6b43865d3f8e96eb46322669c46a8bd /tools | |
parent | 0ec3e3ba477334005d041c09861873e43a5f59bf (diff) | |
download | linux-6fd06c287fb1064dbec7b13588dfaa4b1e899787.tar.xz |
rtw88: fix potential read outside array boundary
commit 18a0696e85fde169e0109aa61d0505b2b935b59d upstream.
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 <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions