summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Tia <javier.tia@linaro.org>2025-03-11 14:12:26 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-03-13 02:36:57 +0000
commitdfecb2646f1524c70b56855e40a83bf98ca81b1e (patch)
treef688745bc2b98e352123c670cd6b046577caab9a
parent80c04eb46fc97f303a50172eaa7095bdcd7e6559 (diff)
downloadedk2-dfecb2646f1524c70b56855e40a83bf98ca81b1e.zip
edk2-dfecb2646f1524c70b56855e40a83bf98ca81b1e.tar.gz
edk2-dfecb2646f1524c70b56855e40a83bf98ca81b1e.tar.bz2
CapsuleApp: Fix proper return after capsule update
After a failed capsule updated it returns 0 and not Status failure. Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Javier Tia <javier.tia@linaro.org>
-rw-r--r--MdeModulePkg/Application/CapsuleApp/CapsuleApp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c b/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
index d6fb928..a5b092d 100644
--- a/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
+++ b/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
@@ -1029,6 +1029,7 @@ UefiMain (
Status = gRT->UpdateCapsule (CapsuleHeaderArray, CapsuleNum, (UINTN)BlockDescriptors);
if (Status != EFI_SUCCESS) {
Print (L"CapsuleApp: failed to update capsule - %r\n", Status);
+ goto Done;
}
}