summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-12-29 09:04:55 +0000
committerlzeng14 <lzeng14@Edk2>2015-12-29 09:04:55 +0000
commit4a23636a34c91d77f5f0b9ac681c9fd0da8c6f0a (patch)
tree77992279c2fe390a8c7535e7dbd49e054b9123c5 /MdeModulePkg
parentb2c59ce83cf857cfe9868525526001a7944f3d33 (diff)
downloadedk2-4a23636a34c91d77f5f0b9ac681c9fd0da8c6f0a.tar.gz
edk2-4a23636a34c91d77f5f0b9ac681c9fd0da8c6f0a.tar.bz2
edk2-4a23636a34c91d77f5f0b9ac681c9fd0da8c6f0a.zip
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 <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19573 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}
}