projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd00b8
)
act_mirred: always release tcf hash
author
WANG Cong
<xiyou.wangcong@gmail.com>
Thu, 1 Oct 2015 18:37:43 +0000
(11:37 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 5 Oct 2015 13:30:34 +0000
(06:30 -0700)
Align with other tc actions.
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_mirred.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/act_mirred.c
b/net/sched/act_mirred.c
index 3e7c51a8ca382bd87bbf895f11d34defbbc96dfb..2efaf4ee60408ce663c53378eea51ae7206d72ef 100644
(file)
--- a/
net/sched/act_mirred.c
+++ b/
net/sched/act_mirred.c
@@
-107,10
+107,10
@@
static int tcf_mirred_init(struct net *net, struct nlattr *nla,
} else {
if (bind)
return 0;
- if (!ovr) {
- tcf_hash_release(a, bind);
+
+ tcf_hash_release(a, bind);
+ if (!ovr)
return -EEXIST;
- }
}
m = to_mirred(a);