From 4a23636a34c91d77f5f0b9ac681c9fd0da8c6f0a Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Tue, 29 Dec 2015 09:04:55 +0000 Subject: [PATCH] MdeModulePkg Variable: VarErrFlag need to be consistent in NV flash and cache The code wrongly has TempFlag wrote to NV flash, but has Flag assigned to NV cache. Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19573 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 1cb0409e97..9d89d39668 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -799,7 +799,7 @@ RecordVarErrorFlag ( // // Update the data in NV cache. // - *VarErrFlag = Flag; + *VarErrFlag = TempFlag; } } }