git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pkt_sched: cls_u32: Fix locking in u32_change()
[pandora-kernel.git]
/
net
/
sched
/
cls_u32.c
diff --git
a/net/sched/cls_u32.c
b/net/sched/cls_u32.c
index
246f906
..
ea51fcd
100644
(file)
--- a/
net/sched/cls_u32.c
+++ b/
net/sched/cls_u32.c
@@
-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;