[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240702122450.2213833-8-suhui@nfschina.com>
Date: Tue, 2 Jul 2024 20:24:50 +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,
marcan@...can.st,
duoming@....edu.cn,
petr.tesarik.ext@...wei.com,
colin.i.king@...il.com,
meuleman@...adcom.com,
frankyl@...adcom.com,
linville@...driver.com,
pieterpg@...adcom.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 7/9] wifi: cfg80211: avoid garbage value of 'wsec' in brcmf_cfg80211_add_key()
brcmf_fil_bsscfg_int_get() reads the value of 'wsec'.
Initialize 'wsec' to avoid garbage value.
Fixes: f09d0c02b63d ("brcmfmac: use different fw api for encryption,auth. config")
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 eb1196db8407..2a97d4d7f684 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -2782,7 +2782,7 @@ brcmf_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
struct brcmf_pub *drvr = cfg->pub;
struct brcmf_wsec_key *key;
s32 val;
- s32 wsec;
+ s32 wsec = 0;
s32 err;
u8 keybuf[8];
bool ext_key;
--
2.30.2
Powered by blists - more mailing lists