[PATCH 070/641] Staging: wlan-ng: Use kzfree() to securely zero-out the WEP key when freeing it

Greg Kroah-Hartman gregkh at suse.de
Tue Sep 15 19:05:01 UTC 2009


From: Moritz Muehlenhoff <jmm at debian.org>

Signed-off-by: Moritz Muehlenhoff <jmm at debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/staging/wlan-ng/p80211netdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 0f030f8..dd96a42 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -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)
-- 
1.6.4.2




More information about the devel mailing list