summaryrefslogtreecommitdiffstats
path: root/StandaloneMmPkg/Core
diff options
context:
space:
mode:
authorGirish Mahadevan <gmahadevan@nvidia.com>2024-02-27 02:57:44 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-09 09:56:35 +0000
commit107981f3f0312175f597543ce249d730432969f2 (patch)
tree0362154615eddaa34c426c4e069fd7309aa48a5c /StandaloneMmPkg/Core
parent3ac092cf721010f6f457e268dcbf5be83bfab243 (diff)
downloadedk2-107981f3f0312175f597543ce249d730432969f2.tar.gz
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 <gmahadevan@nvidia.com> Reviewed-by: Jeff Brasen <jbrasen@nvidia.com>
Diffstat (limited to 'StandaloneMmPkg/Core')
-rw-r--r--StandaloneMmPkg/Core/Dispatcher.c1
1 files changed, 1 insertions, 0 deletions
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;
}