summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg/Bus')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
index 70b28df0b1..f40000672f 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
@@ -973,7 +973,12 @@ PciScanBus (
//
// It is device. Check PCI IOV for Bus reservation
//
-
+ if (PciDevice == NULL) {
+ //
+ // No PciDevice found, conitue Scan
+ //
+ continue;
+ }
//
// Go through each function, just reserve the MAX ReservedBusNum for one device
//