From a1d887b7ab3cbd1a989f78954daabdd4a12eaf1d Mon Sep 17 00:00:00 2001 From: vanjeff Date: Fri, 7 Mar 2008 03:43:00 +0000 Subject: [PATCH] Merger tracker:Fixed a Pci bus driver logic error git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4799 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c index b5b35687a6..edb12f6bb0 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c @@ -1046,10 +1046,14 @@ Returns: // for (DevIndex = 0; DevIndex < RemovedPciDevNum; DevIndex++) { if (PciResNode->PciDev == RemovedPciDev[DevIndex]) { - continue; + break; } } + if (DevIndex != RemovedPciDevNum) { + continue; + } + // // Remove the device if it isn't in the array // -- 2.39.2