From cbbccf3cf39247456746949dfaa00ff4bbc6826f Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Thu, 4 Jan 2018 13:39:11 +0800 Subject: [PATCH] MdeModulePkg/PciBus: Reserve Bus number for non-root and root HPBs REF: https://bugzilla.tianocore.org/show_bug.cgi?id=656 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek --- MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c index a3a5829582..dc1086606f 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -1125,14 +1125,14 @@ PciScanBus ( BusPadding = FALSE; if (gPciHotPlugInit != NULL) { - if (IsRootPciHotPlugBus (PciDevice->DevicePath, &HpIndex)) { + if (IsPciHotPlugBus (PciDevice)) { // // If it is initialized, get the padded bus range // Status = gPciHotPlugInit->GetResourcePadding ( gPciHotPlugInit, - gPciRootHpcPool[HpIndex].HpbDevicePath, + PciDevice->DevicePath, PciAddress, &State, (VOID **) &Descriptors, -- 2.39.2