Commit 2f585191 authored by Moritz Muehlenhoff's avatar Moritz Muehlenhoff Committed by Greg Kroah-Hartman

Staging: wlan-ng: Use kzfree() to securely zero-out the WEP key when freeing it

Signed-off-by: default avatarMoritz Muehlenhoff <jmm@debian.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0d0202fd
...@@ -448,7 +448,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, ...@@ -448,7 +448,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
failed: failed:
/* Free up the WEP buffer if it's not the same as the skb */ /* Free up the WEP buffer if it's not the same as the skb */
if ((p80211_wep.data) && (p80211_wep.data != skb->data)) if ((p80211_wep.data) && (p80211_wep.data != skb->data))
kfree(p80211_wep.data); kzfree(p80211_wep.data);
/* we always free the skb here, never in a lower level. */ /* we always free the skb here, never in a lower level. */
if (!result) if (!result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment