audk/MdeModulePkg
Sunny Wang 21320ef669 MdeModulePkg/Variable: Make only EFI_VARIABLE_NON_VOLATILE invalid
Only EFI_VARIABLE_NON_VOLATILE attribute is an invalid combination
of attribute bits, so update the variable driver to return
EFI_INVALID_PARAMETER so that we can prevent the invalid variable
being created.

This change also fixes the SCT failure below:
 - RT.QueryVariableInfo - With being an invalid combination -- FAILURE

For details, please check the threads below:
 - https://edk2.groups.io/g/devel/topic/86486174
 - https://edk2.groups.io/g/devel/message/82466

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: G Edhaya Chandran <edhaya.chandran@arm.com>
Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>

Signed-off-by: Sunny Wang <sunny.wang@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2022-01-21 02:13:31 +00:00
..
Application
Bus MdeModulePkg: Put off UFS HCS.DP checking to fix timing problem 2022-01-04 02:23:14 +00:00
Core
Include
Library
Logo
Test
Universal MdeModulePkg/Variable: Make only EFI_VARIABLE_NON_VOLATILE invalid 2022-01-21 02:13:31 +00:00
MdeModulePkg.ci.yaml
MdeModulePkg.dec
MdeModulePkg.dsc
MdeModulePkg.uni
MdeModulePkgExtra.uni