Re: [edk2] [PATCH] MdeModulePkg PiSmmCoreMemoryAllocLib: Fix a FreePool() assertion issue

2017-07-31 Thread Gao, Liming
k2] [PATCH] MdeModulePkg PiSmmCoreMemoryAllocLib: Fix a >FreePool() assertion issue > >When PiSmmCore links against PeiDxeDebugLibReportStatusCode, the code >flow below will cause a FreePool() assertion issue. > >PiSmmCoreMemoryAllocationLibConstructor() -> >SmmInitializeMemoryServices

[edk2] [PATCH] MdeModulePkg PiSmmCoreMemoryAllocLib: Fix a FreePool() assertion issue

2017-07-31 Thread Star Zeng
When PiSmmCore links against PeiDxeDebugLibReportStatusCode, the code flow below will cause a FreePool() assertion issue. PiSmmCoreMemoryAllocationLibConstructor() -> SmmInitializeMemoryServices() -> DEBUG ((DEBUG_INFO, "SmmAddMemoryRegion\n")) in SmmAddMemoryRegion() -> DebugPrint() -> REPORT_STA