Skip to content

Commit

Permalink
Staging: wlan-ng: Use kzfree() to securely zero-out the WEP key when …
Browse files Browse the repository at this point in the history
…freeing it

Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Moritz Muehlenhoff authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 0d0202f commit 2f58519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/wlan-ng/p80211netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f58519

Please sign in to comment.