From f11a4a7d8a8bff6ce167ea7a6a87f34ca47340e0 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 14 May 2018 13:04:38 +0800 Subject: [PATCH] net/mlx5: fix uninitialized variable in probing Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses") Signed-off-by: Andy Green Acked-by: Pablo de Lara Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 8aa91cc8ed..f455ea8eaa 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -686,7 +686,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, int err = 0; struct ibv_context *attr_ctx = NULL; struct ibv_device_attr_ex device_attr; - unsigned int vf; + unsigned int vf = 0; unsigned int mps; unsigned int cqe_comp; unsigned int tunnel_en = 0; -- 2.20.1