]> err.no Git - linux-2.6/blobdiff - net/mac80211/mesh_pathtbl.c
[ARM] 5117/1: pxafb: fix __devinit/exit annotations
[linux-2.6] / net / mac80211 / mesh_pathtbl.c
index 1d2d051e59765f5de0ce89811a893d5537e0b701..99c2d360888ef30cc7f0e8637b7aea9af0d474a4 100644 (file)
@@ -220,9 +220,10 @@ endadd:
                        return -ENOMEM;
                }
                rcu_assign_pointer(mesh_paths, newtbl);
+               write_unlock(&pathtbl_resize_lock);
+
                synchronize_rcu();
                mesh_table_free(oldtbl, false);
-               write_unlock(&pathtbl_resize_lock);
        }
 endadd2:
        return err;