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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, September 16, 2009 - 9:01 am

Gitweb:     http://git.kernel.org/linus/2f5851917c7a2b29b0f73d974f241b9f8aaa62dd
Commit:     2f5851917c7a2b29b0f73d974f241b9f8aaa62dd
Parent:     0d0202fd888a0f6e42d14aa903c6d79fc8777125
Author:     Moritz Muehlenhoff <jmm@debian.org>
AuthorDate: Sun Jun 21 22:43:45 2009 +0200
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Sep 15 12:01:34 2009 -0700

    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>
---
 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)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Staging: wlan-ng: Use kzfree() to securely zero-out the WE ..., Linux Kernel Mailing ..., (Wed Sep 16, 9:01 am)