Skip to contentSkip to conversation

mac80211: Fix memleak in nl80211 authentication on deinit

PATCH New Jouni Malinen 1 participant 1 message Mar 20, 2009 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/mac80211/iface.c |    1 +
 1 file changed, 1 insertion(+)
net/mac80211/iface.c +1 -0
@@ -660,6 +660,7 @@ static void ieee80211_teardown_sdata(str
 		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:
Signature · 1 line
Jouni Malinen                                            PGP id EFC895FA