Skip to content

Commit

Permalink
act_mirred: always release tcf hash
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
WANG Cong authored and David S. Miller committed Oct 5, 2015
1 parent 6bd00b8 commit 215c90a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/sched/act_mirred.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 215c90a

Please sign in to comment.