X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPiSmmCore%2FHeapGuard.c;fp=MdeModulePkg%2FCore%2FPiSmmCore%2FHeapGuard.c;h=aa9c25d1021d144d5ae3299c5a1aed44911e4f38;hp=c5ffb263420e0a3d37e1de9d9825c96ce87f1a17;hb=8b13bca9b81490fc0e42df25d5feb82bbb47833e;hpb=3d1872b780cc6e028a554c7f7b5f6e04e98ab36b diff --git a/MdeModulePkg/Core/PiSmmCore/HeapGuard.c b/MdeModulePkg/Core/PiSmmCore/HeapGuard.c index c5ffb26342..aa9c25d102 100644 --- a/MdeModulePkg/Core/PiSmmCore/HeapGuard.c +++ b/MdeModulePkg/Core/PiSmmCore/HeapGuard.c @@ -1,7 +1,7 @@ /** @file UEFI Heap Guard functions. -Copyright (c) 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2017-2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -888,13 +888,6 @@ AdjustMemoryS ( Target = Start + Size - SizeRequested; - // - // At least one more page needed for Guard page. - // - if (Size < (SizeRequested + EFI_PAGES_TO_SIZE (1))) { - return 0; - } - if (!IsGuardPage (Start + Size)) { // No Guard at tail to share. One more page is needed. Target -= EFI_PAGES_TO_SIZE (1);