Skip to content

Commit

Permalink
Revert "net: sched: bump refcount for new action in ACT replace mode"
Browse files Browse the repository at this point in the history
This reverts commit 6855e82.

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>
  • Loading branch information
Vlad Buslov authored and David S. Miller committed Apr 8, 2021
1 parent 8a12f88 commit 4ba8612
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/sched/act_api.c
Original file line number Diff line number Diff line change
@@ -1042,9 +1042,6 @@ struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
if (err != ACT_P_CREATED)
module_put(a_o->owner);

if (!bind && ovr && err == ACT_P_CREATED)
refcount_set(&a->tcfa_refcnt, 2);

return a;

err_out:

0 comments on commit 4ba8612

Please sign in to comment.