diff options
author | Raymond Mao <raymond.mao@linaro.org> | 2023-06-19 14:22:59 -0700 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-07-15 11:20:41 +0200 |
commit | 9945bc4f867a9d0dd2c69b86b182265320f37d4b (patch) | |
tree | 71b727e892846f796ee5b667ff18956ea956e80c /cmd/bootmenu.c | |
parent | 339b527bd4507404a2128ddad24ba060eba342c9 (diff) |
Fix incorrect return code of boot option update
Correct the return code for out-of-memory and no boot option found
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'cmd/bootmenu.c')
-rw-r--r-- | cmd/bootmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c index 01daddca7b3..987b16889f8 100644 --- a/cmd/bootmenu.c +++ b/cmd/bootmenu.c @@ -352,7 +352,7 @@ static struct bootmenu_data *bootmenu_create(int delay) * a architecture-specific default image name such as BOOTAA64.EFI. */ efi_ret = efi_bootmgr_update_media_device_boot_option(); - if (efi_ret != EFI_SUCCESS && efi_ret != EFI_NOT_FOUND) + if (efi_ret != EFI_SUCCESS) goto cleanup; ret = prepare_uefi_bootorder_entry(menu, &iter, &i); |