pci:fix missing free
PATCH 1/1 pci:fix missing free
Signed-off-by zhouyangchao <[email protected]>
--- lib/librte_eal/common/eal_common_pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/librte_eal/common/eal_common_pci.c +1 -0
@@ -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 ;
Signature · 1 line
1.7.1
Hi,
2016-09-23 10:06, zhouyangchao:
Quoted 1 line
Signed-off-by zhouyangchao <[email protected]>
Is your first name Yangchao and your surname Zhou? If so, it would be:
Signed-off-by Yangchao Zhou <[email protected]>
PATCH 1/1 pci:fix missing free
Signed-off-by Yangchao Zhou <[email protected]>
--- lib/librte_eal/common/eal_common_pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/librte_eal/common/eal_common_pci.c +1 -0
@@ -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 ;
Signature · 1 line
1.7.1
Hello,
Quoted 18 lines · Yangchao Zhou
Signed-off-by Yangchao Zhou <[email protected]>--- lib/librte_eal/common/eal_common_pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)lib/librte_eal/common/eal_common_pci.c +1
-1@@ -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 ; --
Quoted 2 lines
1.7.1
For the title, how about:
pci: fix memory leak when detaching devices
Afaics the fixes tag would be :
Fixes dbe6b4b61b0e ("pci: probe or close device")
+ CC stable
Signature · 1 line
David Marchand
Quoted 27 lines · David Marchand
Hello,
Quoted 18 lines · Yangchao Zhou
Signed-off-by Yangchao Zhou <[email protected]>--- lib/librte_eal/common/eal_common_pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)lib/librte_eal/common/eal_common_pci.c +1
-1@@ -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 ; --Quoted 2 lines
1.7.1
For the title, how about:
pci: fix memory leak when detaching devices
Quoted 5 lines
Afaics the fixes tag would be :
Fixes dbe6b4b61b0e ("pci: probe or close device")+ CC stable
Thomas, can you apply this with my ack ?
Thanks.
Signature · 1 line
David Marchand
Thomas Monjalon
Applied2016-09-30 17:27, David Marchand:
Quoted 10 lines
Quoted 8 lines · David Marchand
Hello,
Quoted 1 line · Yangchao Zhou
Signed-off-by Yangchao Zhou <[email protected]>For the title, how about:
pci: fix memory leak when detaching devices
Quoted 8 lines
Quoted 5 lines
Afaics the fixes tag would be :
Fixes dbe6b4b61b0e ("pci: probe or close device")+ CC stable
Thomas, can you apply this with my ack ?
Thanks.
Applied, thanks