From jmm@debian.org Fri Jul 10 14:33:58 2009 From: Moritz Muehlenhoff Date: Sun, 21 Jun 2009 22:43:45 +0200 Subject: Staging: wlan-ng: Use kzfree() to securely zero-out the WEP key when freeing it To: greg@kroah.com Cc: Moritz Muehlenhoff Message-ID: <1245617027-5671-2-git-send-email-jmm@debian.org> Signed-off-by: Moritz Muehlenhoff Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c @@ -448,7 +448,7 @@ static int p80211knetdev_hard_start_xmit 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)