summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorElvin Li <elvin.li@intel.com>2014-07-24 05:58:50 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2014-07-24 05:58:50 +0000
commit34717ef034ed275a15683dafd29cb518af50fff0 (patch)
tree1d5241bd898bff219f21465369e7650eb9270e6a /MdeModulePkg/Universal
parent673c893016484fe8265e90d39719a0306be9bab2 (diff)
downloadedk2-platforms-34717ef034ed275a15683dafd29cb518af50fff0.tar.xz
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 <elvin.li@intel.com> Review-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15675 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/CapsulePei/UefiCapsule.c2
1 files changed, 2 insertions, 0 deletions
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