[PATCH 0/3] cmd: bootefi: fix error handling

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Mar 16 10:36:41 CET 2024


efi_run_image() tries to remove protocol interfaces from a NULL handle and
returns EFI_INVALID_PARAMETER.

If an EFI binary returns an error code EFI_INVALID_PARAMETER, we show the
usage help for the bootefi command which makes no sense.

If bootefi selftest is executed and a problem with the device-tree
installation occurs, efi_install_fdt() writes sensible error messages.
It makes not sense to show  the usage help for the bootefi command in
this case.

Heinrich Schuchardt (3):
  efi_loader: correct handling of EFI binary return code
  cmd: bootefi: Don't show usage help if EFI binary fails.
  cmd: bootefi: error handling bootefi selftest

 cmd/bootefi.c                | 12 +++---------
 lib/efi_loader/efi_bootbin.c | 16 +++++++++++-----
 2 files changed, 14 insertions(+), 14 deletions(-)

-- 
2.43.0



More information about the U-Boot mailing list