summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2026-04-21 00:03:19 +0200
committerHeinrich Schuchardt <[email protected]>2026-05-01 10:30:03 +0200
commit96b33427eae16b7c49dfa5f596506dbe5d84c2ff (patch)
tree5bd231e8ba56d89349da248e33871ffaa52e1887
parent7311130b73a67ece4984cfc2c1fb31b002cf1a48 (diff)
efi_loader: correct return value of efi_bootmgr_run()
efi_bootmgr_run() is expected to return an efi_status_t value. Reported-by: Simon Glass <[email protected]> Fixes: 0bef4b0123f2 ("cmd: bootefi: move library interfaces under lib/efi_loader") Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
-rw-r--r--lib/efi_loader/efi_bootmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index a687f4d8e85..52ccebab19f 100644
--- a/lib/efi_loader/efi_bootmgr.c
+++ b/lib/efi_loader/efi_bootmgr.c
@@ -1313,7 +1313,7 @@ efi_status_t efi_bootmgr_run(void *fdt)
if (ret != EFI_SUCCESS) {
log_err("Error: Cannot initialize UEFI sub-system, r = %lu\n",
ret & ~EFI_ERROR_MASK);
- return CMD_RET_FAILURE;
+ return ret;
}
ret = efi_bootmgr_load(&handle, &load_options);