diff options
author | Star Zeng <star.zeng@intel.com> | 2018-01-25 11:20:04 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-01-31 17:23:36 +0800 |
commit | e434be3c9c03fde122d878a9487915db96c479ce (patch) | |
tree | dade04799ae5c2141a5ccd56acea8d954e1cd629 /BaseTools/Source/Python/BPDG/GenVpd.py | |
parent | 19ef86eec6ed67c11b6a942865b143123180d394 (diff) | |
download | edk2-e434be3c9c03fde122d878a9487915db96c479ce.tar.gz edk2-e434be3c9c03fde122d878a9487915db96c479ce.tar.bz2 edk2-e434be3c9c03fde122d878a9487915db96c479ce.zip |
MdeModulePkg PiSmmCore: Set ForwardLink to NULL in RemoveOldEntry()
"Entry->Link.ForwardLink = NULL;" is present in RemoveMemoryMapEntry()
for DxeCore, that is correct.
"Entry->Link.ForwardLink = NULL;" is absent in RemoveOldEntry()
for PiSmmCore, that is incorrect.
Without this fix, when FromStack in Entry is TRUE,
the "InsertTailList (&mMapStack[mMapDepth].Link, &Entry->Link);" in
following calling to CoreFreeMemoryMapStack() will fail as the entry
at mMapStack[mMapDepth] actually has been removed from the list.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/BPDG/GenVpd.py')
0 files changed, 0 insertions, 0 deletions