mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
efi_loader: do_bootefi_exec should always return an EFI status code
The return type of do_bootefi_exec() is efi_status_t. So in case of an error we should always return an EFI status code. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
14ad49d100
commit
45204b1025
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ static efi_status_t do_bootefi_exec(void *efi, void *fdt,
|
|||
struct efi_loaded_image loaded_image_info = {};
|
||||
struct efi_object loaded_image_info_obj = {};
|
||||
struct efi_device_path *memdp = NULL;
|
||||
ulong ret;
|
||||
efi_status_t ret;
|
||||
|
||||
EFIAPI efi_status_t (*entry)(efi_handle_t image_handle,
|
||||
struct efi_system_table *st);
|
||||
|
@ -229,7 +229,7 @@ static efi_status_t do_bootefi_exec(void *efi, void *fdt,
|
|||
/* Load the EFI payload */
|
||||
entry = efi_load_pe(efi, &loaded_image_info);
|
||||
if (!entry) {
|
||||
ret = -ENOENT;
|
||||
ret = EFI_LOAD_ERROR;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue