From: Igor Ryzhov Date: Thu, 4 Aug 2016 11:50:06 +0000 (+0300) Subject: pci: fix probing error if no driver found X-Git-Tag: spdx-start~5392 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=25c62ca4eb0cb4bae0db9628ef343f246cc11820;p=dpdk.git pci: fix probing error if no driver found The rte_eal_pci_probe_one function could return false positive result if no driver is found for the device. Signed-off-by: Igor Ryzhov Acked-by: David Marchand --- diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 6163b09869..6bff6752f5 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -361,7 +361,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; }