Add security check to pass klockwork.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9320 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
htao 2009-09-28 02:16:44 +00:00
parent 02e124209e
commit 9dd44c0be8
1 changed files with 6 additions and 1 deletions

View File

@ -973,7 +973,12 @@ PciScanBus (
// //
// It is device. Check PCI IOV for Bus reservation // 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 // Go through each function, just reserve the MAX ReservedBusNum for one device
// //