]> git.ipfire.org Git - thirdparty/u-boot.git/commit
efi_loader: correct handling of EFI binary return code
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Mar 2024 09:36:42 +0000 (10:36 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 21 Mar 2024 06:28:43 +0000 (07:28 +0100)
commit6f90a05a04d8377ae85f9aba8fc03955da72eba0
treee9dfa9b0ad0c67f1b517e039285d19956ee2cfc5
parentb9d4db4e0f76f759b6a60035cbc191a8f3ed227b
efi_loader: correct handling of EFI binary return code

We should not try to remove protocol interfaces from a NULL handle.
efi_run_image() should always return the return code of the executed EFI
binary.

Fixes: 6422820ac3e5 ("efi_loader: split unrelated code from efi_bootmgr.c")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_bootbin.c