提交 0441d6ff 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

cfg80211: free rd on unlikely event on 11d hint

This was never happening but it was still wrong, so correct it.
Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 915278e0
......@@ -1341,7 +1341,7 @@ void regulatory_hint_11d(struct wiphy *wiphy,
* it as it would indicate a mistake in the current design
*/
if (WARN_ON(reg_same_country_ie_hint(wiphy, checksum)))
goto out;
goto free_rd_out;
/* We keep this around for when CRDA comes back with a response so
* we can intersect with that */
......@@ -1350,6 +1350,10 @@ void regulatory_hint_11d(struct wiphy *wiphy,
__regulatory_hint(wiphy, REGDOM_SET_BY_COUNTRY_IE,
country_ie_regdomain->alpha2, checksum, env);
goto out;
free_rd_out:
kfree(rd);
out:
mutex_unlock(&cfg80211_mutex);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册