mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 10:28:57 +00:00
mlx5: Fix error code translation from firmware to driver
Limits exceeded should be translated to ENOMEM. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
a4774e9095
commit
9c8651314b
@ -1512,7 +1512,7 @@ int mlx5_cmd_status_to_err(struct mlx5_outbox_hdr *hdr)
|
||||
case MLX5_CMD_STAT_BAD_SYS_STATE_ERR: return -EIO;
|
||||
case MLX5_CMD_STAT_BAD_RES_ERR: return -EINVAL;
|
||||
case MLX5_CMD_STAT_RES_BUSY: return -EBUSY;
|
||||
case MLX5_CMD_STAT_LIM_ERR: return -EINVAL;
|
||||
case MLX5_CMD_STAT_LIM_ERR: return -ENOMEM;
|
||||
case MLX5_CMD_STAT_BAD_RES_STATE_ERR: return -EINVAL;
|
||||
case MLX5_CMD_STAT_IX_ERR: return -EINVAL;
|
||||
case MLX5_CMD_STAT_NO_RES_ERR: return -EAGAIN;
|
||||
|
Loading…
Reference in New Issue
Block a user