We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6eeab commit efeb7dfCopy full SHA for efeb7df
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
@@ -681,13 +681,13 @@ static void
681
mlxsw_sp_acl_tcam_region_destroy(struct mlxsw_sp *mlxsw_sp,
682
struct mlxsw_sp_acl_tcam_region *region)
683
{
684
+ struct mlxsw_sp_acl_tcam *tcam = mlxsw_sp_acl_to_tcam(mlxsw_sp->acl);
685
const struct mlxsw_sp_acl_tcam_ops *ops = mlxsw_sp->acl_tcam_ops;
686
687
ops->region_fini(mlxsw_sp, region->priv);
688
mlxsw_sp_acl_tcam_region_disable(mlxsw_sp, region);
689
mlxsw_sp_acl_tcam_region_free(mlxsw_sp, region);
- mlxsw_sp_acl_tcam_region_id_put(region->group->tcam,
690
- region->id);
+ mlxsw_sp_acl_tcam_region_id_put(tcam, region->id);
691
kfree(region);
692
}
693
0 commit comments