projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b47f610
)
mac80211: clear key material when freeing keys
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 10 Sep 2014 10:39:55 +0000
(13:39 +0300)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 11 Sep 2014 10:07:23 +0000
(12:07 +0200)
When freeing the key, clear the memory to avoid having the
key material stick around in memory "forever".
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c
patch
|
blob
|
history
diff --git
a/net/mac80211/key.c
b/net/mac80211/key.c
index
f320a04
..
4712150
100644
(file)
--- a/
net/mac80211/key.c
+++ b/
net/mac80211/key.c
@@
-422,7
+422,7
@@
static void ieee80211_key_free_common(struct ieee80211_key *key)
ieee80211_aes_key_free(key->u.ccmp.tfm);
if (key->conf.cipher == WLAN_CIPHER_SUITE_AES_CMAC)
ieee80211_aes_cmac_key_free(key->u.aes_cmac.tfm);
- kfree(key);
+ k
z
free(key);
}
static void __ieee80211_key_destroy(struct ieee80211_key *key,