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
commit 4ba8612 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
w1ldptr authored and gregkh committed Apr 14, 2021
1 parent a22115c commit b451aed
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
Expand Up @@ -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:
Expand Down

0 comments on commit b451aed

Please sign in to comment.