MdeModulePkg/Mem: Initialize the variable MapMemory

MapMemory is not initialized by FindGuardedMemoryMap
or CoreInternalAllocatePages which calls MapMemory.
So we give a 0 to it.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
Shenglei Zhang 2019-10-15 10:13:35 +08:00 committed by Liming Gao
parent a857ea4199
commit 17efd446c0
1 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,8 @@ FindGuardedMemoryMap (
UINTN BitsToUnitEnd; UINTN BitsToUnitEnd;
EFI_STATUS Status; EFI_STATUS Status;
MapMemory = 0;
// //
// Adjust current map table depth according to the address to access // Adjust current map table depth according to the address to access
// //