summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorPing-Ke Shih <pkshih@realtek.com>2025-07-15 11:52:59 +0800
committerPing-Ke Shih <pkshih@realtek.com>2025-07-18 14:03:34 +0800
commit8b4a0277388137ac31728ee69d9e388a0fa52287 (patch)
tree596007a2b0398c77f21ed365e033c516732aeed8 /scripts/lib/kdoc/kdoc_files.py
parentf1000385d47be9e0a1d1d622a2e2e28ffd0fe384 (diff)
wifi: rtw89: check path range before using in rtw89_fw_h2c_rf_ps_info()
The variable 'path' from rtw89_phy_get_syn_sel() as index of array could be 3, but array size is 2. Fortunately, current chip->rf_path_num is smaller or equal to 2, so it is safe. To prevent mistakes in the future, add a checking and avoid Coverity warnings. Addresses-Coverity-ID: linux-next: 1644716 ("Out-of-bounds write") Addresses-Coverity-ID: linux-next: 1644717 ("Out-of-bounds write") Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20250715035259.45061-6-pkshih@realtek.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions