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:
WANG Cong 2015-10-01 11:37:43 -07:00 committed by David S. Miller
parent 6bd00b8506
commit 215c90afb9
1 changed files with 3 additions and 3 deletions

View File

@ -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);