diff options
-rw-r--r-- | MdeModulePkg/Core/Dxe/Mem/Page.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/Page.c b/MdeModulePkg/Core/Dxe/Mem/Page.c index 1f9e659753..4f31b5f57f 100644 --- a/MdeModulePkg/Core/Dxe/Mem/Page.c +++ b/MdeModulePkg/Core/Dxe/Mem/Page.c @@ -651,6 +651,8 @@ CoreConvertPages ( // if that's all we've got
//
RangeEnd = End;
+
+ ASSERT (Entry != NULL);
if (Entry->End < End) {
RangeEnd = Entry->End;
}
@@ -1099,6 +1101,7 @@ CoreFreePages ( Alignment = EFI_DEFAULT_PAGE_ALLOCATION_ALIGNMENT;
+ ASSERT (Entry != NULL);
if (Entry->Type == EfiACPIReclaimMemory ||
Entry->Type == EfiACPIMemoryNVS ||
Entry->Type == EfiRuntimeServicesCode ||
|