Skip to content

Commit

Permalink
MdeModulePkg: Remove PeiAllocatePool() Assert
Browse files Browse the repository at this point in the history
Removes an assert if PeiAllocatePool() fails to allocate memory to
defer error handling to the caller so the error can be handled
gracefully or asserted at that location which is more specific to
the call that led to the allocation.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
kuqin12 authored and mergify[bot] committed Jul 10, 2024
1 parent 7aaee52 commit f912110
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions MdeModulePkg/Core/Pei/Memory/MemoryServices.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,6 @@ PeiAllocatePool (
(UINT16)(sizeof (EFI_HOB_MEMORY_POOL) + Size),
(VOID **)&Hob
);
ASSERT_EFI_ERROR (Status);

if (EFI_ERROR (Status)) {
*Buffer = NULL;
} else {
Expand Down

0 comments on commit f912110

Please sign in to comment.