mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
UefiCpuPkg MmUnblockMemoryLib: RETURN_OUT_OF_RESOURCES if HOB build fails
Signed-off-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
9f90207ba3
commit
791bf763be
1 changed files with 2 additions and 1 deletions
|
|
@ -116,6 +116,7 @@ MmUnblockMemoryLibIsUnblockableRegion (
|
|||
EfiRuntimeServicesData, EfiACPIMemoryNVS, and EfiReservedMemory.
|
||||
@retval RETURN_INVALID_PARAMETER Input range to unblock contains memory that doesn't belong to
|
||||
any memory allocation HOB.
|
||||
@retval RETURN_OUT_OF_RESOURCES No enough resource to handle the unblock request.
|
||||
@retval RETURN_ACCESS_DENIED The request is rejected due to system has passed certain boot
|
||||
phase.
|
||||
**/
|
||||
|
|
@ -157,7 +158,7 @@ MmUnblockMemoryRequest (
|
|||
MmUnblockMemoryHob = BuildGuidHob (&gMmUnblockRegionHobGuid, sizeof (MM_UNBLOCK_REGION));
|
||||
if (MmUnblockMemoryHob == NULL) {
|
||||
DEBUG ((DEBUG_ERROR, "MmUnblockMemoryRequest: Failed to allocate hob for unblocked data parameter!!\n"));
|
||||
return Status;
|
||||
return RETURN_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
ZeroMem (MmUnblockMemoryHob, sizeof (MM_UNBLOCK_REGION));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue