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:
Hans Petter Selasky 2019-05-08 10:44:02 +00:00
parent fc39af04df
commit 07e68e62a0

View File

@ -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,