[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210329163036.135761-1-alaaemadhossney.ae@gmail.com>
Date: Mon, 29 Mar 2021 18:30:36 +0200
From: Alaa Emad <alaaemadhossney.ae@...il.com>
To: johannes@...solutions.net, davem@...emloft.net, kuba@...nel.org
Cc: gregkh@...uxfoundation.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
syzkaller@...glegroups.com,
Alaa Emad <alaaemadhossney.ae@...il.com>,
syzbot+72b99dcf4607e8c770f3@...kaller.appspotmail.com
Subject: [PATCH] wireless/nl80211.c: fix uninitialized variable
Reported-by: syzbot+72b99dcf4607e8c770f3@...kaller.appspotmail.com
Signed-off-by: Alaa Emad <alaaemadhossney.ae@...il.com>
---
net/wireless/nl80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 775d0c4d86c3..b87ab67ad33d 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -210,7 +210,7 @@ static int validate_beacon_head(const struct nlattr *attr,
const struct element *elem;
const struct ieee80211_mgmt *mgmt = (void *)data;
bool s1g_bcn = ieee80211_is_s1g_beacon(mgmt->frame_control);
- unsigned int fixedlen, hdrlen;
+ unsigned int fixedlen = 0, hdrlen;
if (s1g_bcn) {
fixedlen = offsetof(struct ieee80211_ext,
--
2.25.1
Powered by blists - more mailing lists