diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2020-07-09 19:41:15 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-07-14 16:38:30 +0000 |
commit | 256c4470f86e53661c070f8c64a1052e975f9ef0 (patch) | |
tree | bce262f97695524a07d03db30f0db2faa7803ccf /BaseTools/Source/Python/Workspace/DscBuildData.py | |
parent | 9c6f3545aee0808b78a0ad4480b6eb9d24989dc1 (diff) | |
download | edk2-256c4470f86e53661c070f8c64a1052e975f9ef0.tar.gz edk2-256c4470f86e53661c070f8c64a1052e975f9ef0.tar.bz2 edk2-256c4470f86e53661c070f8c64a1052e975f9ef0.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DscBuildData.py')
0 files changed, 0 insertions, 0 deletions