diff options
author | htao <htao@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-09-28 02:16:44 +0000 |
---|---|---|
committer | htao <htao@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-09-28 02:16:44 +0000 |
commit | 9dd44c0be8cd1532ade53295b7351abe31e199d5 (patch) | |
tree | 9790e1a338f01e83e860b87f82fa38e9b59d13d2 /IntelFrameworkModulePkg | |
parent | 02e124209e5074f5b96e4a7de312049fb54c07a9 (diff) | |
download | edk2-platforms-9dd44c0be8cd1532ade53295b7351abe31e199d5.tar.xz |
Add security check to pass klockwork.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9320 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 7 |
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
//
|