aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mesh_pathtbl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index 1d2d051e5976..99c2d360888e 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -220,9 +220,10 @@ endadd:
220 return -ENOMEM; 220 return -ENOMEM;
221 } 221 }
222 rcu_assign_pointer(mesh_paths, newtbl); 222 rcu_assign_pointer(mesh_paths, newtbl);
223 write_unlock(&pathtbl_resize_lock);
224
223 synchronize_rcu(); 225 synchronize_rcu();
224 mesh_table_free(oldtbl, false); 226 mesh_table_free(oldtbl, false);
225 write_unlock(&pathtbl_resize_lock);
226 } 227 }
227endadd2: 228endadd2:
228 return err; 229 return err;