From: lzeng14 Date: Fri, 11 May 2012 01:27:59 +0000 (+0000) Subject: Update CapsuleCoalesce() to return the correct size of the coalesced capsule include... X-Git-Tag: edk2-stable201903~13414 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2e4c9e0158cc10226dc0e2de679bc984e288f18a Update CapsuleCoalesce() to return the correct size of the coalesced capsule include PrivateData, CapsuleImageData, CapsuleNumber and CapsuleOffset array. Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13302 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c index a32b6d6645..0428111675 100644 --- a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c +++ b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c @@ -1,7 +1,7 @@ /** @file The logic to process capsule. -Copyright (c) 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2011 - 2012, 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 @@ -1086,7 +1086,7 @@ CapsuleDataCoalesce ( // We return the base of memory we want reserved, and the size. // The memory peim should handle it appropriately from there. // - *MemorySize = (UINTN) CapsuleImageSize; + *MemorySize = (UINTN) CapsuleSize; *MemoryBase = (VOID *) NewCapsuleBase; //