]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/mlx5: HWS, Fix an error code in mlx5hws_bwc_rule_create_complex()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 23 May 2025 16:00:12 +0000 (19:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 May 2025 00:31:42 +0000 (17:31 -0700)
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 <dan.carpenter@linaro.org>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/aDCbjNcquNC68Hyj@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c

index 5d30c5b094fc718c1030b51b1f7defb44a0837db..70768953a4f6f3ac2948a1cdf89c7bbe15252e6a 100644 (file)
@@ -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;
        }