mirror of https://github.com/acidanthera/audk.git
Check Context before use it.
Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14979 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b7ae875107
commit
a1ac5791ff
|
@ -613,7 +613,7 @@ InitializeDebugAgent (
|
|||
//
|
||||
// Set return status for DEBUG_AGENT_INIT_PEI
|
||||
//
|
||||
if (InitFlag == DEBUG_AGENT_INIT_PEI) {
|
||||
if (InitFlag == DEBUG_AGENT_INIT_PEI && Context != NULL) {
|
||||
*(EFI_STATUS *)Context = EFI_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue