Message ID | 20181215090325.31604-22-luca@coelho.fi (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Johannes Berg |
Headers | show |
Series | cfg80211/mac80211 patches from our internal tree 2018-12-15 | expand |
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 669cbdb6f849..449a379e054a 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -9097,8 +9097,10 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info) if (info->attrs[NL80211_ATTR_CONTROL_PORT_OVER_NL80211]) { int r = validate_pae_over_nl80211(rdev, info); - if (r < 0) + if (r < 0) { + kzfree(connkeys); return r; + } ibss.control_port_over_nl80211 = true; }