Change implicit and probably erronous EPERM to EIO on command status error
in mlx5core. Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
fc39af04df
commit
07e68e62a0
@ -1235,7 +1235,7 @@ EXPORT_SYMBOL(mlx5_cmd_comp_handler);
|
||||
|
||||
static int status_to_err(u8 status)
|
||||
{
|
||||
return status ? -1 : 0; /* TBD more meaningful codes */
|
||||
return status ? -EIO : 0; /* TBD more meaningful codes */
|
||||
}
|
||||
|
||||
static struct mlx5_cmd_msg *alloc_msg(struct mlx5_core_dev *dev, int in_size,
|
||||
|
Loading…
x
Reference in New Issue
Block a user