projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a36b93
)
nl80211: Zero out the connection keys memory when freeing them.
author
Ola Olsson
<ola1olsson@gmail.com>
Thu, 11 Feb 2016 00:00:22 +0000
(
01:00
+0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 23 Feb 2016 09:40:36 +0000
(10:40 +0100)
The connection keys are zeroed out in all other cases except this
one. Let's fix the last one as well.
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index d4786f2802aa3c94f0a9bfcba846c98ec5b2b249..711cb7ad6ae011132b868d928ebe23037040db82 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-7547,7
+7547,7
@@
static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info)
if ((ibss.chandef.width != NL80211_CHAN_WIDTH_20_NOHT) &&
no_ht) {
- kfree(connkeys);
+ k
z
free(connkeys);
return -EINVAL;
}
}