From 34717ef034ed275a15683dafd29cb518af50fff0 Mon Sep 17 00:00:00 2001 From: Elvin Li Date: Thu, 24 Jul 2014 05:58:50 +0000 Subject: Clear the whole EFI_PHYSICAL_ADDRESS CapsuleDataPtr64 to 0 at first to avoid rubbish data in high 32 bits. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Review-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15675 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/CapsulePei/UefiCapsule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Universal') diff --git a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c index 37ba341e60..23bf2026d4 100644 --- a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c +++ b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c @@ -574,6 +574,7 @@ GetCapsuleDescriptors ( TempVarName = NULL; CapsuleVarName[0] = 0; ValidIndex = 0; + CapsuleDataPtr64 = 0; Status = PeiServicesLocatePpi ( &gEfiPeiReadOnlyVariable2PpiGuid, @@ -745,6 +746,7 @@ CapsuleCoalesce ( Index = 0; VariableCount = 0; CapsuleVarName[0] = 0; + CapsuleDataPtr64 = 0; // // Someone should have already ascertained the boot mode. If it's not -- cgit v1.2.3