diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c index 8b076e8791..a3a5829582 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -1,7 +1,7 @@ /** @file Internal library implementation for PCI Bus module. -Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -1154,11 +1154,20 @@ PciScanBus ( FreePool (Descriptors); - if (EFI_ERROR (Status)) { - return Status; - } + switch (Status) { + case EFI_SUCCESS: + BusPadding = TRUE; + break; - BusPadding = TRUE; + case EFI_NOT_FOUND: + // + // no bus number padding requested + // + break; + + default: + return Status; + } } } }