summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMoritz Muehlenhoff2009-06-21 22:43:45 +0200
committerGreg Kroah-Hartman2009-09-15 21:01:34 +0200
commit2f5851917c7a2b29b0f73d974f241b9f8aaa62dd (patch)
tree993e2fd2b0984af0fabc27649b41c4903f53599b /drivers
parentStaging: wlan-ng: Remove some superflous comments (diff)
downloadkernel-qcow2-linux-2f5851917c7a2b29b0f73d974f241b9f8aaa62dd.tar.gz
kernel-qcow2-linux-2f5851917c7a2b29b0f73d974f241b9f8aaa62dd.tar.xz
kernel-qcow2-linux-2f5851917c7a2b29b0f73d974f241b9f8aaa62dd.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/wlan-ng/p80211netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 0f030f8a97a3..dd96a42bb72f 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)