[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240702122450.2213833-6-suhui@nfschina.com>
Date: Tue, 2 Jul 2024 20:24:48 +0800
From: Su Hui <suhui@...china.com>
To: arend.vanspriel@...adcom.com,
kvalo@...nel.org
Cc: Su Hui <suhui@...china.com>,
johannes.berg@...el.com,
kees@...nel.org,
a@...repo.ru,
petr.tesarik.ext@...wei.com,
justinstitt@...gle.com,
marcan@...can.st,
duoming@....edu.cn,
colin.i.king@...il.com,
antonio@...n-mesh.com,
linux-wireless@...r.kernel.org,
brcm80211@...ts.linux.dev,
brcm80211-dev-list.pdl@...adcom.com,
linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [PATCH wireless 5/9] wifi: cfg80211: avoid garbage value of 'freq' in brcmf_cfg80211_mgmt_tx()
brcmf_fil_cmd_int_get() reads the value of 'freq'.
Initialize 'freq' to avoid garbage value.
Fixes: c2ff8cad6423 ("brcm80211: make mgmt_tx in brcmfmac accept a NULL channel")
Signed-off-by: Su Hui <suhui@...china.com>
---
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 e672565de437..9a5b1f77c890 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -5511,7 +5511,7 @@ brcmf_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
struct brcmf_fil_af_params_le *af_params;
bool ack;
s32 chan_nr;
- u32 freq;
+ u32 freq = 0;
brcmf_dbg(TRACE, "Enter\n");
--
2.30.2
Powered by blists - more mailing lists