]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.c
Initialize LockBox.Attribute to 0 in SaveLockBox, or it will be random value.
[mirror_edk2.git] / MdeModulePkg / Library / SmmLockBoxLib / SmmLockBoxSmmLib.c
index 51e6930a76499c9fa53589d31e65b1a742faa927..a332634aa7d66a411a2204e4a0bc4b10aa2e5e55 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 ~ 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -265,6 +265,7 @@ SaveLockBox (
   CopyMem (&LockBox->Guid, Guid, sizeof(EFI_GUID));\r
   LockBox->Buffer      = (EFI_PHYSICAL_ADDRESS)(UINTN)Buffer;\r
   LockBox->Length      = (UINT64)Length;\r
+  LockBox->Attributes  = 0;\r
   LockBox->SmramBuffer = SmramBuffer;\r
   \r
   LockBoxQueue = InternalGetLockBoxQueue ();\r