X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciEnumeratorSupport.c;h=086c481130c8363728ae91f3ac30a7b5260e65cc;hp=a6ade26e3a09786970dc0a46fc0684d8e3c76a0a;hb=c28306c3d6e0c7721abc937d8f47c3f1ccecf323;hpb=720eea6aa80b48acb05c1adc0f835e849d71da97 diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index a6ade26e3a..086c481130 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -164,6 +164,14 @@ PciPciDeviceInfoCollector ( return Status; } + // + // Ensure secondary bus number is greater than the primary bus number to avoid + // any potential dead loop when PcdPciDisableBusEnumeration is set to TRUE + // + if (SecBus <= StartBusNumber) { + break; + } + // // Get resource padding for PPB //