Skip to content

Commit 107981f

Browse files
gmahadevanmergify[bot]
authored andcommitted
StandaloneMmPkg: Assert if dispatcher fails memory allocation
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]>
1 parent 3ac092c commit 107981f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

StandaloneMmPkg/Core/Dispatcher.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ MmLoadImage (
144144
&DstBuffer
145145
);
146146
if (EFI_ERROR (Status)) {
147+
ASSERT_EFI_ERROR (Status);
147148
return Status;
148149
}
149150

0 commit comments

Comments
 (0)