audk/MdeModulePkg/Universal/Variable/RuntimeDxe
Michael D Kinney 256c4470f8 MdeModulePkg/Variable/RuntimeDxe: Fix return status from Reclaim()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2844

Update Reclaim() to return the error status from the reclaim
operation and not the status of SynchronizeRuntimeVariableCache()
that can be EFI_SUCCESS even through the status from reclaim
is an error.  Without this change, the return status from
SetVariable() can be EFI_SUCCESS even though the variable was
not actually set.  This occurs if the variable store is full
and a Reclaim() is invoked to free up space and even after all
possible space is freed, there is still not enough room for
the variable being set.  This condition should return
EFI_OUT_OF_RESOURCES.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2020-07-14 16:38:30 +00:00
..
Measurement.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PrivilegePolymorphic.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Reclaim.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
SpeculationBarrierDxe.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
SpeculationBarrierSmm.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
TcgMorLockDxe.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
TcgMorLockSmm.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VarCheck.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Variable.c MdeModulePkg/Variable/RuntimeDxe: Fix return status from Reclaim() 2020-07-14 16:38:30 +00:00
Variable.h MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableDxe.c MdeModulePkg: stop abusing EFI_EVENT for protocol notify registration 2019-10-09 09:40:09 +02:00
VariableExLib.c MdeModulePkg/Variable: Parameterize auth status in VariableParsing 2019-11-05 21:55:54 -08:00
VariableNonVolatile.c MdeModulePkg/Variable: Add a file for NV variable functions 2019-11-05 21:55:54 -08:00
VariableNonVolatile.h MdeModulePkg/Variable: Add a file for NV variable functions 2019-11-05 21:55:54 -08:00
VariableParsing.c MdeModulePkg/Variable: Initialize local variable "Variable" 2019-11-25 14:14:18 +00:00
VariableParsing.h MdeModulePkg/Variable: Parameterize auth status in VariableParsing 2019-11-05 21:55:54 -08:00
VariableRuntimeCache.c MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableRuntimeCache.h MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableRuntimeDxe.inf MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableRuntimeDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableRuntimeDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmm.c MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableSmm.inf MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableSmm.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmmExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmmRuntimeDxe.c MdeModulePkg/VariableSmmRuntimeDxe: switch to MM communicate 2 2020-05-12 19:23:44 +00:00
VariableSmmRuntimeDxe.inf MdeModulePkg/VariableSmmRuntimeDxe: switch to MM communicate 2 2020-05-12 19:23:44 +00:00
VariableSmmRuntimeDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmmRuntimeDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableStandaloneMm.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableStandaloneMm.inf MdeModulePkg/Variable: Add RT GetVariable() cache support 2019-11-05 21:55:54 -08:00
VariableTraditionalMm.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00