audk/ArmPkg/Library/ArmLib/AArch64
Heyi Guo 8483681426 ArmPkg/Mmu: Fix potential page table memory leak
During page entry attribute update, if there are table entries
between starting BlockEntry and LastBlockEntry, table entries will be
set as block entries and the allocated memory of the tables will be
leaked.

So instead, we break the inner loop when we find a table entry and run
outer loop again to step into the table by the same logic.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>

[ardb: move termination condition check inside the loop]
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18425 6f19259b-4bc3-4df7-8a09-765794883524
2015-09-09 13:37:50 +00:00
..
AArch64ArchTimer.c ArmPkg: Move TimerDxe and ArmArchTimerLib to new ArmGenericTimerCounterLib 2014-09-09 16:10:18 +00:00
AArch64ArchTimerSupport.S ArmPkg: fix ArmWriteCntkCtl simple code bug 2015-05-13 18:21:58 +00:00
AArch64Lib.c ArmPkg/ArmLib: Drain Write Buffer before DCache maintenance operations. 2014-06-03 16:37:29 +00:00
AArch64Lib.h ArmPkg/ArmLib: Move common definitions from ArmV7Lib.h & AArch64Lib.h to ArmLib.h 2014-03-01 10:57:09 +00:00
AArch64Lib.inf ArmPkg: remove cache maintenance by VA operation range size threshold 2015-04-14 11:54:40 +00:00
AArch64LibPrePi.inf ArmPkg: remove cache maintenance by VA operation range size threshold 2015-04-14 11:54:40 +00:00
AArch64LibSec.inf ArmPkg: remove cache maintenance by VA operation range size threshold 2015-04-14 11:54:40 +00:00
AArch64Mmu.c ArmPkg/Mmu: Fix potential page table memory leak 2015-09-09 13:37:50 +00:00
AArch64Support.S ArmPkg: Ensured the stack is always quad-word aligned 2014-11-11 00:51:11 +00:00
ArmLibSupportV8.S ARM Packages: Include 'AsmMacroIoLibV8.h' instead of the 32bit version 2014-02-24 19:20:16 +00:00