mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
mac80211: clear key material when freeing keys
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>
This commit is contained in:
parent
b47f610bd6
commit
29c3f9c399
@ -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);
|
||||
kzfree(key);
|
||||
}
|
||||
|
||||
static void __ieee80211_key_destroy(struct ieee80211_key *key,
|
||||
|
Loading…
Reference in New Issue
Block a user