pkt_sched: cls_u32: Fix locking in u32_change()
[pandora-kernel.git] / net / sched / cls_u32.c
index 246f906..ea51fcd 100644 (file)
@@ -637,8 +637,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;