projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/mac80211/key.c
b/net/mac80211/key.c
index f320a04380b9a22cc97b58dce8c9a162c501ec37..4712150dc2109df0b6f17162da8ec5119a94ec0a 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,