The RTNL has to be held since this potentially changes the regdomain. Locking was forgotten here due to recent locking simplification changes. Signed-off-by: Arik Nemtsov <arik@xxxxxxxxxx> --- net/wireless/reg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 1ec3933..b25390a 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2285,7 +2285,9 @@ void wiphy_regulatory_deregister(struct wiphy *wiphy) static void reg_timeout_work(struct work_struct *work) { REG_DBG_PRINT("Timeout while waiting for CRDA to reply, restoring regulatory settings\n"); + rtnl_lock(); restore_regulatory_settings(true); + rtnl_unlock(); } int __init regulatory_init(void) -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html