aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
index d664cc0289c2..a54f23f00a5f 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
@@ -584,6 +584,7 @@ static void
584mlxsw_afa_counter_destroy(struct mlxsw_afa_block *block, 584mlxsw_afa_counter_destroy(struct mlxsw_afa_block *block,
585 struct mlxsw_afa_counter *counter) 585 struct mlxsw_afa_counter *counter)
586{ 586{
587 mlxsw_afa_resource_del(&counter->resource);
587 block->afa->ops->counter_index_put(block->afa->ops_priv, 588 block->afa->ops->counter_index_put(block->afa->ops_priv,
588 counter->counter_index); 589 counter->counter_index);
589 kfree(counter); 590 kfree(counter);