[dpdk-stable] patch 'net/mlx5: fix crash in device probe' has been	queued to LTS release 17.11.4
    Yongseok Koh 
    yskoh at mellanox.com
       
    Fri Jul 27 04:09:05 CEST 2018
    
    
  
Hi,
FYI, your patch has been queued to LTS release 17.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/28/18. So please
shout if anyone has objections.
Thanks.
Yongseok
---
>From a1eef40349f4bf5156334b554baf0c7189d41183 Mon Sep 17 00:00:00 2001
From: Xueming Li <xuemingl at mellanox.com>
Date: Tue, 12 Jun 2018 19:38:11 +0800
Subject: [PATCH] net/mlx5: fix crash in device probe
[ upstream commit a9fc0b0ef0c276fcea082b20574e27cca1bac3e8 ]
This patch initializes counter descriptor struct before invoking Verbs
api to avoid segmentation fault.
Fixes: 9a761de8ea14 ("net/mlx5: flow counter support")
Signed-off-by: Xueming Li <xuemingl at mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
---
 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 10ce33592..76f76c41b 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -680,7 +680,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
 	int i;
 	struct mlx5dv_context attrs_out;
 #ifdef HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT
-	struct ibv_counter_set_description cs_desc;
+	struct ibv_counter_set_description cs_desc = { .counter_type = 0 };
 #endif
 
 	assert(pci_drv == &mlx5_driver);
-- 
2.11.0
    
    
More information about the stable
mailing list