From: htao Date: Mon, 28 Sep 2009 02:16:44 +0000 (+0000) Subject: Add security check to pass klockwork. X-Git-Tag: edk2-stable201903~16999 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=9dd44c0be8cd1532ade53295b7351abe31e199d5 Add security check to pass klockwork. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9320 6f19259b-4bc3-4df7-8a09-765794883524 --- 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 //