diff options
author | Ola Olsson <ola1olsson@gmail.com> | 2016-02-11 01:00:22 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-02-23 10:40:36 +0100 |
commit | 5e950a78bf5b18ded277a27aed0bcdbe7c1b868a (patch) | |
tree | 572e9f403c7867c65f605343fcb9527d2e1e87c8 /net/wireless | |
parent | mac80211: minstrel_ht: set default tx aggregation timeout to 0 (diff) | |
download | linux-5e950a78bf5b18ded277a27aed0bcdbe7c1b868a.tar.xz linux-5e950a78bf5b18ded277a27aed0bcdbe7c1b868a.zip |
nl80211: Zero out the connection keys memory when freeing them.
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>
Diffstat (limited to '')
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index d4786f2802aa..711cb7ad6ae0 100644 --- 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); + kzfree(connkeys); return -EINVAL; } } |