]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add security check to pass klockwork.
authorhtao <htao@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Sep 2009 02:16:44 +0000 (02:16 +0000)
committerhtao <htao@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Sep 2009 02:16:44 +0000 (02:16 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9320 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c

index 70b28df0b1008091d077b98a9a6895b5f18c43a6..f40000672fc63f4a9200676c6951053ab5cac03a 100644 (file)
@@ -973,7 +973,12 @@ PciScanBus (
         //\r
         // It is device. Check PCI IOV for Bus reservation\r
         //\r
-\r
+        if (PciDevice == NULL) {\r
+          //\r
+          // No PciDevice found, conitue Scan\r
+          //\r
+          continue;\r
+        }\r
         //\r
         // Go through each function, just reserve the MAX ReservedBusNum for one device\r
         //\r