]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PiSmmCore: Fix an assert issue in pool free
authorJian J Wang <jian.j.wang@intel.com>
Mon, 20 Nov 2017 01:00:27 +0000 (09:00 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 20 Nov 2017 05:06:32 +0000 (13:06 +0800)
commit94edadf502bd0e61f00bb08a5df2e078af54a770
tree2ccc50f59b65f6102d8021d306b6e4b299ec8e74
parente259779974ea7e109ee75b9b853f73bd0f66a4b3
MdeModulePkg/PiSmmCore: Fix an assert issue in pool free

Following check-in caused this issue:
  2930ef9809976ce693d1d377851344c3b06bd926

This issue is caused by assigning incorrect value to PoolHdr.Size
if the requested size is more than MAX_POOL_SIZE, because the SMM
core will actually allocate page memory instead of pool memory in
this situation.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Wu Hao <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Wu Hao <hao.a.wu@intel.com>
Tested-by: Wu Hao <hao.a.wu@intel.com>
MdeModulePkg/Core/PiSmmCore/Pool.c