diff options
| author | Zong-Zhe Yang <[email protected]> | 2022-07-27 14:50:03 +0800 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2022-08-09 08:48:08 +0300 |
| commit | 86331c7e0cd819bf0c1d0dcf895e0c90b0aa9a6f (patch) | |
| tree | 7e04fe1c9c499a1f7b8170c99080636bf734221d /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 79ba1062c459a7afac8cc43649f7377052795c05 (diff) | |
wifi: rtw88: phy: fix warning of possible buffer overflow
reported by smatch
phy.c:854 rtw_phy_linear_2_db() error: buffer overflow 'db_invert_table[i]'
8 <= 8 (assuming for loop doesn't break)
However, it seems to be a false alarm because we prevent it originally via
if (linear >= db_invert_table[11][7])
return 96; /* maximum 96 dB */
Still, we adjust the code to be more readable and avoid smatch warning.
Signed-off-by: Zong-Zhe Yang <[email protected]>
Signed-off-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions