audk/MdeModulePkg/Core/Dxe/Mem
Jian J Wang 8b13bca9b8 MdeModulePkg/Core: fix too many available pages between BS_Data
The root cause is an unnecessary check to Size parameter in function
AdjustMemoryS(). It will cause one standalone free page (happen to have
Guard page around) in the free memory list cannot be allocated, even if
the requested memory size is less than a page.

  //
  // At least one more page needed for Guard page.
  //
  if (Size < (SizeRequested + EFI_PAGES_TO_SIZE (1))) {
    return 0;
  }

The following code in the same function actually covers above check
implicitly. So the fix is simply removing above check.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2018-03-08 12:37:28 +08:00
..
HeapGuard.c MdeModulePkg/Core: fix too many available pages between BS_Data 2018-03-08 12:37:28 +08:00
HeapGuard.h MdeModulePkg/Core: fix feature conflict between NX and heap guard 2018-02-02 09:50:16 +08:00
Imem.h MdeModulePkg: Fix unix style of EOL 2017-11-21 20:24:37 +08:00
MemData.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
MemoryProfileRecord.c MdeModulePkg DxeCore: Remove unreferenced symbol for memory profile 2017-03-15 16:47:20 +08:00
Page.c MdeModulePkg/Core: fix a logic hole in page free 2018-01-19 14:16:11 +08:00
Pool.c MdeModulePkg/Core: fix guard page missing issue 2018-02-02 09:50:15 +08:00