diff options
Diffstat (limited to 'MdePkg/Library/PeiHobLib')
-rw-r--r-- | MdePkg/Library/PeiHobLib/HobLib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/MdePkg/Library/PeiHobLib/HobLib.c b/MdePkg/Library/PeiHobLib/HobLib.c index a608325c65..f853452f56 100644 --- a/MdePkg/Library/PeiHobLib/HobLib.c +++ b/MdePkg/Library/PeiHobLib/HobLib.c @@ -327,10 +327,11 @@ BuildResourceDescriptorWithOwnerHob ( ) { EFI_HOB_RESOURCE_DESCRIPTOR *Hob; - EFI_STATUS Status; - - Status = PeiServicesCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, sizeof (EFI_HOB_RESOURCE_DESCRIPTOR), (void **)&Hob); - ASSERT_EFI_ERROR (Status); +
+ Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16) sizeof (EFI_HOB_RESOURCE_DESCRIPTOR));
+ if (Hob == NULL) {
+ return;
+ }
Hob->ResourceType = ResourceType; Hob->ResourceAttribute = ResourceAttribute; |