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 <sjg@chromium.org>
Fixes: 0bef4b0123f2 ("cmd: bootefi: move library interfaces under lib/efi_loader")
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
Heinrich Schuchardt 2026-04-21 00:03:19 +02:00
parent 7311130b73
commit 96b33427ea

View File

@ -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);