X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciEnumerator.c;h=ee6656de70ca243c0234bd77ffd97ade3bb62907;hp=bd1e6804661c9387994a3a406c9c16d349daa8da;hb=ea8d98fa9f862ba533448983f81a79e4e71008f5;hpb=944c84a6dd257827698d110bc25480c3648081d3 diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c index bd1e680466..ee6656de70 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c @@ -82,7 +82,11 @@ PciEnumerator ( // // Notify the pci bus enumeration is about to begin // - NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginEnumeration); + Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginEnumeration); + + if (EFI_ERROR (Status)) { + return Status; + } // // Start the bus allocation phase @@ -105,7 +109,11 @@ PciEnumerator ( // // Notify the pci bus enumeration is about to complete // - NotifyPhase (PciResAlloc, EfiPciHostBridgeEndEnumeration); + Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeEndEnumeration); + + if (EFI_ERROR (Status)) { + return Status; + } // // Process P2C