Message ID | 20240702122450.2213833-9-suhui@nfschina.com |
---|---|
State | New |
Headers | show |
Series | wifi: cfg80211: avoid some garbage values | expand |
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 2a97d4d7f684..95193e09504f 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -2085,7 +2085,7 @@ brcmf_set_key_mgmt(struct net_device *ndev, struct cfg80211_connect_params *sme) struct brcmf_if *ifp = netdev_priv(ndev); struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; struct brcmf_pub *drvr = ifp->drvr; - s32 val; + s32 val = 0; s32 err; const struct brcmf_tlv *rsn_ie; const u8 *ie;
brcmf_fil_bsscfg_int_get() reads the value of 'val'. Initialize 'val' to avoid garbage vlaue. Fixes: 240d61a9ddeb ("brcmfmac: add 802.11w management frame protection support") Signed-off-by: Su Hui <suhui@nfschina.com> --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)