dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Moritz Muehlenhoff 2009-06-21 22:43:45 +02:00 committed by Greg Kroah-Hartman
parent 0d0202fd88
commit 2f5851917c
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ static int p80211knetdev_hard_start_xmit(struct sk_buff *skb,
failed:
/* Free up the WEP buffer if it's not the same as the skb */
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. */
if (!result)