diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-05-23 19:00:12 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-05-27 17:31:42 -0700 |
commit | a540ee75945a96f606c6ac955bfed5410d318f7d (patch) | |
tree | e46eeb17f552f65c1b5d149f165729c9af4e7895 | |
parent | c8ef20fe7274c5766a317f9193b70bed717b6b3d (diff) |
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 <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>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 5d30c5b094fc..70768953a4f6 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; } |