Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 215c90af authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

act_mirred: always release tcf hash



Align with other tc actions.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarCong Wang <cwang@twopensource.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6bd00b85
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -107,11 +107,11 @@ static int tcf_mirred_init(struct net *net, struct nlattr *nla,
	} else {
		if (bind)
			return 0;
		if (!ovr) {

		tcf_hash_release(a, bind);
		if (!ovr)
			return -EEXIST;
	}
	}
	m = to_mirred(a);

	ASSERT_RTNL();