Skip to content

Commit

Permalink
Added an error message for if the PiSmmCommunicationRegionTable is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlautner committed Sep 19, 2023
1 parent 09f2af5 commit 11aac4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MinPlatformPkg/Test/TestPointStubDxe/TestPointStubDxeMm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 11aac4d

Please sign in to comment.