From: Declan Doherty Date: Wed, 17 Dec 2014 11:46:58 +0000 (+0000) Subject: bond: fix pci table allocation check X-Git-Tag: spdx-start~9907 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=86b426c82d7166e509a76ef1cca32ddd7e9a7f94;p=dpdk.git bond: fix pci table allocation check Signed-off-by: Declan Doherty --- diff --git a/lib/librte_pmd_bond/rte_eth_bond_api.c b/lib/librte_pmd_bond/rte_eth_bond_api.c index b1247847a7..c2a99a3b98 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_api.c +++ b/lib/librte_pmd_bond/rte_eth_bond_api.c @@ -214,7 +214,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id) goto err; } pci_id_table = rte_zmalloc_socket(name, sizeof(*pci_id_table), 0, socket_id); - if (pci_drv == NULL) { + if (pci_id_table == NULL) { RTE_BOND_LOG(ERR, "Unable to malloc pci_id_table on socket"); goto err; }