X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FVariable%2FRuntimeDxe%2FVariable.c;h=173693d9469248fd8f0a6fcb7f8a1dcb67f71416;hp=9da00f127579d5cd1d16fdd710874e08a30f1713;hb=3b4151bcb43ec74e0a350c7b93f75531cc8df003;hpb=9ae0edbfa90b6e19765c407d950bed44ee6c01ef diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 9da00f1275..173693d946 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -3,7 +3,7 @@ The common variable operation routines shared by DXE_RINTIME variable module and DXE_SMM variable module. -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2011, 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 @@ -199,6 +199,7 @@ UpdateVariableStore ( // Check if the Data is Volatile. // if (!Volatile) { + ASSERT (Fvb != NULL); Status = Fvb->GetPhysicalAddress(Fvb, &FvVolHdr); ASSERT_EFI_ERROR (Status); @@ -2163,7 +2164,7 @@ VariableServiceQueryVariableInfo ( // since the space occupied by variables not marked with // VAR_ADDED is not allowed to be reclaimed in Runtime. // - if ((NextVariable->Attributes & EFI_VARIABLE_HARDWARE_ERROR_RECORD) == EFI_VARIABLE_HARDWARE_ERROR_RECORD) { + if ((Variable->Attributes & EFI_VARIABLE_HARDWARE_ERROR_RECORD) == EFI_VARIABLE_HARDWARE_ERROR_RECORD) { HwErrVariableTotalSize += VariableSize; } else { CommonVariableTotalSize += VariableSize; @@ -2174,7 +2175,7 @@ VariableServiceQueryVariableInfo ( // the space not marked as VAR_ADDED is reclaimable now. // if (Variable->State == VAR_ADDED) { - if ((NextVariable->Attributes & EFI_VARIABLE_HARDWARE_ERROR_RECORD) == EFI_VARIABLE_HARDWARE_ERROR_RECORD) { + if ((Variable->Attributes & EFI_VARIABLE_HARDWARE_ERROR_RECORD) == EFI_VARIABLE_HARDWARE_ERROR_RECORD) { HwErrVariableTotalSize += VariableSize; } else { CommonVariableTotalSize += VariableSize; @@ -2359,7 +2360,7 @@ VariableCommonInitialize ( VolatileVariableStore->Reserved1 = 0; // - // Get non-volatile varaible store. + // Get non-volatile variable store. // TempVariableStoreHeader = (EFI_PHYSICAL_ADDRESS) PcdGet64 (PcdFlashNvStorageVariableBase64);