From 11aac4dae0596661b2ce52061a86b0b98b6cd100 Mon Sep 17 00:00:00 2001 From: Ken Lautner Date: Tue, 19 Sep 2023 13:41:38 -0700 Subject: [PATCH] Added an error message for if the PiSmmCommunicationRegionTable is NULL --- MinPlatformPkg/Test/TestPointStubDxe/TestPointStubDxeMm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MinPlatformPkg/Test/TestPointStubDxe/TestPointStubDxeMm.c b/MinPlatformPkg/Test/TestPointStubDxe/TestPointStubDxeMm.c index cedcb06c8a..5abff33b68 100644 --- a/MinPlatformPkg/Test/TestPointStubDxe/TestPointStubDxeMm.c +++ b/MinPlatformPkg/Test/TestPointStubDxe/TestPointStubDxeMm.c @@ -95,7 +95,12 @@ GetTestPointDataMm ( return; } - ASSERT (PiSmmCommunicationRegionTable != NULL); + if (PiSmmCommunicationRegionTable == NULL) { + ASSERT (PiSmmCommunicationRegionTable != NULL); + DEBUG ((DEBUG_ERROR, "The PiSmmCommunicationRegionTable is NULL!\n")); + return; + } + Entry = (EFI_MEMORY_DESCRIPTOR *)(PiSmmCommunicationRegionTable + 1); Size = 0; for (Index = 0; Index < PiSmmCommunicationRegionTable->NumberOfEntries; Index++) {