audk/MdeModulePkg
Star Zeng 313491310c MdeModulePkg Variable: Handle variable Attributes mismatch case
between variable HOB and NV storage.

Variable HOB may be built by a system that supports and loads variable
default, the variables in the HOB will be flush to NV storage after
variable write search ready.
After that, if the variable's Attributes is changed by someone and
system reboots and tries to load default again, the variable Attributes
mismatch case between variable HOB and NV storage will appear.

Original code did not handle the case correctly, that may eventually
cause NV storage contains two valid same variables that will lead to
system hang if GetNextVariableName() called.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18225 6f19259b-4bc3-4df7-8a09-765794883524
2015-08-17 02:30:43 +00:00
..
Application MdeModulePkg:Fix the issue that Commit changes and Exit fail when add driver option 2015-08-14 01:06:48 +00:00
Bus MdeModulePkg/Usb: Adjust TPL to not block async transfer during usb enum. 2015-08-06 07:13:16 +00:00
Core MdeModulePkg DxeIpl: Fix IA32 build failure with GCC 5.1.1 2015-08-07 23:53:53 +00:00
Include MdeModulePkg: Use monotonic count to initialize the NetLib random seed. 2015-08-07 03:22:10 +00:00
Library MdeModulePkg: Add codes to support trailer parse in HttpLib. 2015-08-12 12:44:31 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg Variable: Handle variable Attributes mismatch case 2015-08-17 02:30:43 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt
MdeModulePkg.dec MdeModulePkg DxeIpl: Add stack NX support 2015-08-05 12:45:21 +00:00
MdeModulePkg.dsc UiApp code split from IntelFrameworkModulePkg/Universal/BdsDxe driver. 2015-07-30 03:41:35 +00:00
MdeModulePkg.uni MdeModulePkg DxeIpl: Add stack NX support 2015-08-05 12:45:21 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00