mirror of https://github.com/acidanthera/audk.git
Add security check.
Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14306 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
56251c669f
commit
8cbad981ee
|
@ -281,6 +281,7 @@ DebugAgentCallbackMemoryDiscoveredPpi (
|
|||
// Update Mailbox Location pointer in GUIDed HOB and IDT entry with new one
|
||||
//
|
||||
MailboxLocationInHob = GetMailboxLocationFromHob ();
|
||||
ASSERT (MailboxLocationInHob != NULL);
|
||||
*MailboxLocationInHob = (UINT64)(UINTN)NewMailbox;
|
||||
SetLocationSavedMailboxPointerInIdtEntry (MailboxLocationInHob);
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue