mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
mac80211: Fix memleak in nl80211 authentication on deinit
This file was forgotten from the quilt patch that added MLME primitives, so the kfree on interface removal is missing. Fix this potential memleak by freeing the temporary Authentication frame IEs from SME when the interface is being removed. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
6b2c40326f
commit
d7873cb9ab
1 changed files with 1 additions and 0 deletions
|
@ -660,6 +660,7 @@ static void ieee80211_teardown_sdata(struct net_device *dev)
|
|||
kfree(sdata->u.mgd.ie_reassocreq);
|
||||
kfree(sdata->u.mgd.ie_deauth);
|
||||
kfree(sdata->u.mgd.ie_disassoc);
|
||||
kfree(sdata->u.mgd.sme_auth_ie);
|
||||
break;
|
||||
case NL80211_IFTYPE_WDS:
|
||||
case NL80211_IFTYPE_AP_VLAN:
|
||||
|
|
Loading…
Reference in a new issue