diff options
author | Aleksandr Mishin <amishin@t-argos.ru> | 2024-07-04 00:05:10 +0300 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2024-07-05 10:03:48 +0800 |
commit | 85099c7ce4f9e64c66aa397cd9a37473637ab891 (patch) | |
tree | e908389c2de4e506b1b0c927c2eb61b1ddc3460f /drivers/net/wireless/realtek/rtlwifi | |
parent | a1e7eafd12c415a6ac2a65d8ddf32569acd1ecf0 (diff) |
wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter()
In rtw89_sta_info_get_iter() 'status->he_gi' is compared to array size.
But then 'rate->he_gi' is used as array index instead of 'status->he_gi'.
This can lead to go beyond array boundaries in case of 'rate->he_gi' is
not equal to 'status->he_gi' and is bigger than array size. Looks like
"copy-paste" mistake.
Fix this mistake by replacing 'rate->he_gi' with 'status->he_gi'.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240703210510.11089-1-amishin@t-argos.ru
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi')
0 files changed, 0 insertions, 0 deletions