Skip to content

Commit

Permalink
StandaloneMmPkg: Assert if dispatcher fails memory allocation
Browse files Browse the repository at this point in the history
If the Dispatcher fails to allocate memory for the driver that it is
trying to load then ASSERT, else the Dispatcher silently stops loading
subsequent drivers from the FV.

Signed-off-by: Girish Mahadevan <[email protected]>
Reviewed-by: Jeff Brasen <[email protected]>
  • Loading branch information
gmahadevan authored and mergify[bot] committed Jan 9, 2025
1 parent 3ac092c commit 107981f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions StandaloneMmPkg/Core/Dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ MmLoadImage (
&DstBuffer
);
if (EFI_ERROR (Status)) {
ASSERT_EFI_ERROR (Status);
return Status;
}

Expand Down

0 comments on commit 107981f

Please sign in to comment.