Thread (9 messages) flat view 9 messages, 4 authors, 2018-03-29

Re: [PATCH v3 2/3] mac80211: limit wmm params to comply with ETSI requirements

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2018-03-29 08:52:10

On Wed, 2018-03-28 at 13:24 +0300, Luca Coelho wrote:
quoted hunk ↗ jump to hunk
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -135,12 +135,12 @@ static void restore_regulatory_settings(bool reset_user);
 
 static const struct ieee80211_regdomain *get_cfg80211_regdom(void)
 {
-	return rtnl_dereference(cfg80211_regdomain);
+	return rcu_dereference_rtnl(cfg80211_regdomain);
 }
 
 const struct ieee80211_regdomain *get_wiphy_regdom(struct wiphy *wiphy)
 {
-	return rtnl_dereference(wiphy->regd);
+	return rcu_dereference_rtnl(wiphy->regd);
 }
 
 static const char *reg_dfs_region_str(enum nl80211_dfs_regions dfs_region)
This should've stayed a separate commit, I'll take that from our tree.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help