Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Imported Upstream version 16.07.2
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_pci.c
diff --git
a/lib/librte_eal/common/eal_common_pci.c
b/lib/librte_eal/common/eal_common_pci.c
index
7248c38
..
096c65e
100644
(file)
--- a/
lib/librte_eal/common/eal_common_pci.c
+++ b/
lib/librte_eal/common/eal_common_pci.c
@@
-344,7
+344,7
@@
rte_eal_pci_probe_one(const struct rte_pci_addr *addr)
continue;
ret = pci_probe_all_drivers(dev);
- if (ret
< 0
)
+ if (ret)
goto err_return;
return 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;