svn commit: r347833 - stable/11/sys/dev/mlx5/mlx5_core
Hans Petter Selasky
hselasky at FreeBSD.org
Thu May 16 17:37:35 UTC 2019
Author: hselasky
Date: Thu May 16 17:37:34 2019
New Revision: 347833
URL: https://svnweb.freebsd.org/changeset/base/347833
Log:
MFC r347282:
Change implicit and probably erronous EPERM to EIO on command status error
in mlx5core.
Submitted by: kib@
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c Thu May 16 17:36:52 2019 (r347832)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_cmd.c Thu May 16 17:37:34 2019 (r347833)
@@ -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,
More information about the svn-src-stable-11
mailing list