From: Dan Carpenter Date: Fri, 23 May 2025 16:00:12 +0000 (+0300) Subject: net/mlx5: HWS, Fix an error code in mlx5hws_bwc_rule_create_complex() X-Git-Tag: v6.16-rc1~132^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a540ee75945a96f606c6ac955bfed5410d318f7d;p=thirdparty%2Fkernel%2Fstable.git net/mlx5: HWS, Fix an error code in mlx5hws_bwc_rule_create_complex() This was intended to be negative -ENOMEM but the '-' character was left off accidentally. This typo doesn't affect runtime because the caller treats all non-zero returns the same. Fixes: 17e0accac577 ("net/mlx5: HWS, support complex matchers") Signed-off-by: Dan Carpenter Reviewed-by: Yevgeny Kliteynik Reviewed-by: Tariq Toukan Link: https://patch.msgid.link/aDCbjNcquNC68Hyj@stanley.mountain Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c index 5d30c5b094fc7..70768953a4f6f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c @@ -1188,7 +1188,7 @@ int mlx5hws_bwc_rule_create_complex(struct mlx5hws_bwc_rule *bwc_rule, GFP_KERNEL); if (unlikely(!match_buf_2)) { mlx5hws_err(ctx, "Complex rule: failed allocating match_buf\n"); - ret = ENOMEM; + ret = -ENOMEM; goto hash_node_put; }