netfilter: ip6table_raw: fix table priority
[safe/jmp/linux-2.6] / net / sched / cls_u32.c
index 05d1780..07372f6 100644 (file)
@@ -638,8 +638,9 @@ static int u32_change(struct tcf_proto *tp, unsigned long base, u32 handle,
                                break;
 
                n->next = *ins;
-               wmb();
+               tcf_tree_lock(tp);
                *ins = n;
+               tcf_tree_unlock(tp);
 
                *arg = (unsigned long)n;
                return 0;