File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
drivers/net/ethernet/mellanox/mlx5/core Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5305,8 +5305,10 @@ int mlx5e_tc_nic_init(struct mlx5e_priv *priv)
5305
5305
mlx5e_tc_debugfs_init (tc , mlx5e_fs_get_debugfs_root (priv -> fs ));
5306
5306
5307
5307
tc -> action_stats_handle = mlx5e_tc_act_stats_create ();
5308
- if (IS_ERR (tc -> action_stats_handle ))
5308
+ if (IS_ERR (tc -> action_stats_handle )) {
5309
+ err = PTR_ERR (tc -> action_stats_handle );
5309
5310
goto err_act_stats ;
5311
+ }
5310
5312
5311
5313
return 0 ;
5312
5314
@@ -5441,8 +5443,10 @@ int mlx5e_tc_esw_init(struct mlx5_rep_uplink_priv *uplink_priv)
5441
5443
}
5442
5444
5443
5445
uplink_priv -> action_stats_handle = mlx5e_tc_act_stats_create ();
5444
- if (IS_ERR (uplink_priv -> action_stats_handle ))
5446
+ if (IS_ERR (uplink_priv -> action_stats_handle )) {
5447
+ err = PTR_ERR (uplink_priv -> action_stats_handle );
5445
5448
goto err_action_counter ;
5449
+ }
5446
5450
5447
5451
return 0 ;
5448
5452
You can’t perform that action at this time.
0 commit comments