public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nl80211: add missing parameter clearing
@ 2009-07-25 14:54 Johannes Berg
  2009-07-25 16:09 ` Maxim Levitsky
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2009-07-25 14:54 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, Jouni Malinen, Maxim Levitsky

Jouni and Maxim reported an oops when using wpa_supplicant -Dnl80211,
which seems to be due to random data being contained in the crypto
settings for the assoc() command. This seems to be due to the missing
memset here, so add it -- it's certainly missing but I'm not 100%
certain that it will fix the problem.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/wireless/nl80211.c |    2 ++
 1 file changed, 2 insertions(+)

--- wireless-testing.orig/net/wireless/nl80211.c	2009-07-25 16:50:39.000000000 +0200
+++ wireless-testing/net/wireless/nl80211.c	2009-07-25 16:51:00.000000000 +0200
@@ -3385,6 +3385,8 @@ static int nl80211_crypto_settings(struc
 				   struct cfg80211_crypto_settings *settings,
 				   int cipher_limit)
 {
+	memset(settings, 0, sizeof(*settings));
+
 	settings->control_port = info->attrs[NL80211_ATTR_CONTROL_PORT];
 
 	if (info->attrs[NL80211_ATTR_CIPHER_SUITES_PAIRWISE]) {



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-25 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25 14:54 [PATCH] nl80211: add missing parameter clearing Johannes Berg
2009-07-25 16:09 ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox