Staging: wlan-ng: Use kzfree() to securely zero-out the WEP key when freeing it
authorMoritz Muehlenhoff <jmm@debian.org>
Sun, 21 Jun 2009 20:43:45 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:34 +0000 (12:01 -0700)
Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlan-ng/p80211netdev.c

index 0f030f8a97a37c4b7356d9abac3649c32cf818cc..dd96a42bb72f9a8787e431a1292925fd2882dd61 100644 (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)