projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3576fd7
)
act_mirred: avoid calling tcf_hash_release() when binding
author
WANG Cong
<
[email protected]
>
Fri, 31 Jul 2015 00:12:20 +0000
(17:12 -0700)
committer
David S. Miller
<
[email protected]
>
Mon, 3 Aug 2015 21:13:28 +0000
(14:13 -0700)
When we share an action within a filter, the bind refcnt
should increase, therefore we should not call tcf_hash_release().
Cc: Jamal Hadi Salim <
[email protected]
>
Cc: Daniel Borkmann <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/act_mirred.c
patch
|
blob
|
history
diff --git
a/net/sched/act_mirred.c
b/net/sched/act_mirred.c
index a42a3b257226178eb5af04054a17813c04368613..268545050ddbd67245ead8394a82f44503657ea5 100644
(file)
--- a/
net/sched/act_mirred.c
+++ b/
net/sched/act_mirred.c
@@
-98,6
+98,8
@@
static int tcf_mirred_init(struct net *net, struct nlattr *nla,
return ret;
ret = ACT_P_CREATED;
} else {
+ if (bind)
+ return 0;
if (!ovr) {
tcf_hash_release(a, bind);
return -EEXIST;