mirror of https://github.com/acidanthera/audk.git
Add non null assertion before using the bridge instance.
Signed-off-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12095 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7dc1329100
commit
9995c2e5d0
|
@ -810,6 +810,12 @@ PciHostBridgeResourceAllocator (
|
|||
Mem64Bridge = FindResourceNode (RootBridgeDev, &Mem64Pool);
|
||||
PMem64Bridge = FindResourceNode (RootBridgeDev, &PMem64Pool);
|
||||
|
||||
ASSERT (IoBridge != NULL);
|
||||
ASSERT (Mem32Bridge != NULL);
|
||||
ASSERT (PMem32Bridge != NULL);
|
||||
ASSERT (Mem64Bridge != NULL);
|
||||
ASSERT (PMem64Bridge != NULL);
|
||||
|
||||
//
|
||||
// Program IO resources
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue