[dpdk-stable] patch 'pci: fix memory leak when detaching device' has been queued to stable release 16.07.1
    Yuanhan Liu 
    yuanhan.liu at linux.intel.com
       
    Wed Oct 12 08:44:24 CEST 2016
    
    
  
Hi,
FYI, your patch has been queued to stable release 16.07.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable
yet. It will be pushed if I get no objections before this Friday.
So please shutout if anyone has objections.
Thanks.
	--yliu
---
>From c9c8989a84b8a753ffbff6d4d226a59ec7cb686d Mon Sep 17 00:00:00 2001
From: Yangchao Zhou <zhouyates at gmail.com>
Date: Thu, 29 Sep 2016 09:41:10 +0800
Subject: [PATCH] pci: fix memory leak when detaching device
[ upstream commit 6edfa69ba6fe86e9f59c76d0bb3732c558aeedc9 ]
Fixes: dbe6b4b61b0e ("pci: probe or close device")
Signed-off-by: Yangchao Zhou <zhouyates at gmail.com>
Acked-by: David Marchand <david.marchand at 6wind.com>
---
 lib/librte_eal/common/eal_common_pci.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c
index 7248c38..eb44998 100644
--- a/lib/librte_eal/common/eal_common_pci.c
+++ b/lib/librte_eal/common/eal_common_pci.c
@@ -378,6 +378,7 @@ rte_eal_pci_detach(const struct rte_pci_addr *addr)
 			goto err_return;
 
 		TAILQ_REMOVE(&pci_device_list, dev, next);
+		free(dev);
 		return 0;
 	}
 	return -1;
-- 
1.9.0
    
    
More information about the stable
mailing list