Initialize LockBox.Attribute to 0 in SaveLockBox, or it will be random value.

signed-off-by: jyao1
reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12931 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jyao1 2012-01-14 01:36:55 +00:00
parent e7c4ef5ed4
commit 05ca95e29c
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/** @file /** @file
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2010 ~ 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions are licensed and made available under the terms and conditions
@ -265,6 +265,7 @@ SaveLockBox (
CopyMem (&LockBox->Guid, Guid, sizeof(EFI_GUID)); CopyMem (&LockBox->Guid, Guid, sizeof(EFI_GUID));
LockBox->Buffer = (EFI_PHYSICAL_ADDRESS)(UINTN)Buffer; LockBox->Buffer = (EFI_PHYSICAL_ADDRESS)(UINTN)Buffer;
LockBox->Length = (UINT64)Length; LockBox->Length = (UINT64)Length;
LockBox->Attributes = 0;
LockBox->SmramBuffer = SmramBuffer; LockBox->SmramBuffer = SmramBuffer;
LockBoxQueue = InternalGetLockBoxQueue (); LockBoxQueue = InternalGetLockBoxQueue ();