From 107981f3f0312175f597543ce249d730432969f2 Mon Sep 17 00:00:00 2001 From: Girish Mahadevan Date: Tue, 27 Feb 2024 02:57:44 +0000 Subject: [PATCH] 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 Reviewed-by: Jeff Brasen --- StandaloneMmPkg/Core/Dispatcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/StandaloneMmPkg/Core/Dispatcher.c b/StandaloneMmPkg/Core/Dispatcher.c index a00c48cd9f..6d9ca715a8 100644 --- a/StandaloneMmPkg/Core/Dispatcher.c +++ b/StandaloneMmPkg/Core/Dispatcher.c @@ -144,6 +144,7 @@ MmLoadImage ( &DstBuffer ); if (EFI_ERROR (Status)) { + ASSERT_EFI_ERROR (Status); return Status; }