diff options
| author | Aaradhana Sahu <[email protected]> | 2024-06-11 08:40:16 +0530 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2024-06-19 17:00:51 +0300 |
| commit | 59ca26c9a6e844204d25299774caa5441c0e68eb (patch) | |
| tree | 11f41d4fd8838b74a8d23bd493286a92b66dad95 /tools/perf/scripts/python/task-analyzer.py | |
| parent | aadeee47e9d7ae98f7116f63fa63fcceffffc65c (diff) | |
wifi: ath12k: fix NULL pointer access in ath12k_mac_op_get_survey()
Smatch throws below error
drivers/net/wireless/ath/ath12k/mac.c:8318 ath12k_mac_op_get_survey() error: we previously assumed 'sband' could be null
Currently, we access sband inside the null check of the sband
in ath12k_mac_op_get_survey().
Fix this issue by removing the entire if block, because decrement
idx is unnecessary since there are no more band to test.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Fixes: 70e3be54bbdd ("wifi: ath12k: fix survey dump collection in 6 GHz")
Signed-off-by: Aaradhana Sahu <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions