act_mirred: always release tcf hash
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>
This commit is contained in:
parent
6bd00b8506
commit
215c90afb9
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue