diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-29 21:57:47 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-12-31 08:50:40 +0300 |
commit | bc53a35ac526c575a91c12af21f7106d54f7a496 (patch) | |
tree | dddcde1df0825af2a9785eb2b577b3d912474c20 /lib/efi | |
parent | 2a1cf03ea4ff9a43fd990dc9ae0110464569c59b (diff) | |
download | u-boot-bc53a35ac526c575a91c12af21f7106d54f7a496.tar.xz |
efi: Check for failure when initing the app
The stub checks for failure with efi_init(). Add this for the app as well.
It is unlikely that anything can be done, but we may as well stop.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/efi')
-rw-r--r-- | lib/efi/efi_app.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c index 214cef9430..32ed5a0d04 100644 --- a/lib/efi/efi_app.c +++ b/lib/efi/efi_app.c @@ -300,8 +300,11 @@ efi_status_t EFIAPI efi_main(efi_handle_t image, efi_status_t ret; /* Set up access to EFI data structures */ - efi_init(priv, "App", image, sys_table); - + ret = efi_init(priv, "App", image, sys_table); + if (ret) { + printf("Failed to set up U-Boot: err=%lx\n", ret); + return ret; + } efi_set_priv(priv); /* |