diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-12 06:39:01 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-12 06:39:01 +0000 |
commit | 525aded9470895475b01f123c3af45fbd74396aa (patch) | |
tree | 2146a0723cda3ad30ca163c16a2b968b9a95954f /MdeModulePkg/Core/Dxe | |
parent | a1b749d074ef44e758458cf16e460dd74e3df123 (diff) | |
download | edk2-platforms-525aded9470895475b01f123c3af45fbd74396aa.tar.xz |
add assert logic to avoid Klocwork fake report
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7512 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe')
-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 ||
|