From 93068a9d5ad819f36a72086db2d73d0042e3852c Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Fri, 25 May 2018 18:15:36 +0200 Subject: [PATCH] net/mlx5: fix error message in probe function Error values passed to strerror() must be positive. Fixes: 012ad9944dfc ("net/mlx5: fix probe return value polarity") Cc: stable@dpdk.org Signed-off-by: Adrien Mazarguil Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 69f68c532b..d27ee960db 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -955,9 +955,9 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, priv->mtu = ETHER_MTU; err = mlx5_args(&config, pci_dev->device.devargs); if (err) { - DRV_LOG(ERR, "failed to process device arguments: %s", - strerror(err)); err = rte_errno; + DRV_LOG(ERR, "failed to process device arguments: %s", + strerror(rte_errno)); goto port_error; } err = mlx5_glue->query_device_ex(ctx, NULL, &device_attr_ex); -- 2.20.1