summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@nvidia.com>2021-04-07 18:36:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-14 08:42:14 +0200
commitb451aed56348ee1202d0dc6f52645104b06a2206 (patch)
tree99fa94f3cd04c7bd2061a0bc196fc26ea4e9d48b
parenta22115c3492f209c4a5a8d04a0da8c4f29f25a0e (diff)
Revert "net: sched: bump refcount for new action in ACT replace mode"
commit 4ba86128ba077fbb7d86516ae24ed642e6c3adef upstream. This reverts commit 6855e8213e06efcaf7c02a15e12b1ae64b9a7149. Following commit in series fixes the issue without introducing regression in error rollback of tcf_action_destroy(). Signed-off-by: Vlad Buslov <vladbu@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--net/sched/act_api.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 28cd4995b69f..88e14cfeb5d5 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -1029,9 +1029,6 @@ struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
if (!name)
a->hw_stats = hw_stats;
- if (!bind && ovr && err == ACT_P_CREATED)
- refcount_set(&a->tcfa_refcnt, 2);
-
return a;
err_out: