From 9dd44c0be8cd1532ade53295b7351abe31e199d5 Mon Sep 17 00:00:00 2001 From: htao Date: Mon, 28 Sep 2009 02:16:44 +0000 Subject: Add security check to pass klockwork. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9320 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 // -- cgit v1.2.3