brcmf_fil_cmd_int_get() reads the value of 'noise' and passes it to brcmf_fil_cmd_data_get(). Initialize 'noise' to avoid garbage value. Fixes: 6c04deae1438 ("brcmfmac: Add dump_survey cfg80211 ops for HostApd AutoChannelSelection") Signed-off-by: Su Hui <suhui@xxxxxxxxxxxx> --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 6be7e7bd8ce7..2377b88d7ee0 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -8084,7 +8084,7 @@ brcmf_cfg80211_dump_survey(struct wiphy *wiphy, struct net_device *ndev, struct ieee80211_supported_band *band; enum nl80211_band band_id; struct cca_msrmnt_query req; - u32 noise; + u32 noise = 0; int err; brcmf_dbg(TRACE, "Enter: channel idx=%d\n", idx); -- 2.30.2