Commit a540ee75 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

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: 17e0acca ("net/mlx5: HWS, support complex matchers")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarYevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/aDCbjNcquNC68Hyj@stanley.mountain


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c8ef20fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}