diff options
author | Arend van Spriel <arend.vanspriel@broadcom.com> | 2023-01-03 13:41:16 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-01-16 13:25:53 +0200 |
commit | aadb50d1571211c73248605bcc1f4b9f8e3d1364 (patch) | |
tree | d45c4b400f951431ad67516af0981471d16e4f7d /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | e5d1ab1a73ad275c0205cbc09a0a9f9f42bbb87f (diff) | |
download | linux-aadb50d1571211c73248605bcc1f4b9f8e3d1364.tar.gz linux-aadb50d1571211c73248605bcc1f4b9f8e3d1364.tar.bz2 linux-aadb50d1571211c73248605bcc1f4b9f8e3d1364.zip |
wifi: brcmfmac: avoid NULL-deref in survey dump for 2G only device
When dealing with a device for 2GHz band only the wiphy->bands for
5GHz will be NULL. This would result in a NULL-deref in the
brcmf_cfg80211_dump_survey() function. Rework the code with a
for-loop to make it easier to add another band.
Fixes: 6c04deae1438 ("brcmfmac: Add dump_survey cfg80211 ops for HostApd AutoChannelSelection")
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230103124117.271988-3-arend.vanspriel@broadcom.com
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions