]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sched/cls_u32.c
netfilter: nf_conntrack_tcp: fix unaligned memory access in tcp_sack
[karo-tx-linux.git] / net / sched / cls_u32.c
index 246f9065ce34b0ad8f7b176807dea7d50221b087..ea51fcd2ac8e26560035d5e38963122c37c931d5 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;