Skip to content

Commit

Permalink
efi/arm64: Avoid EFI_ERROR as a generic return code
Browse files Browse the repository at this point in the history
As EFI_ERROR is not a UEFI result code but a local invention only
intended to allow get_dram_base() to signal failure, we should not use
it elsewhere.

Replace with EFI_LOAD_ERROR.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
  • Loading branch information
Ard Biesheuvel authored and Matt Fleming committed Jul 7, 2014
1 parent e15dd49 commit 6091c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kernel/efi-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static efi_status_t handle_kernel_image(efi_system_table_t *sys_table,
if (*image_addr != (dram_base + TEXT_OFFSET)) {
pr_efi_err(sys_table, "Failed to alloc kernel memory\n");
efi_free(sys_table, kernel_memsize, *image_addr);
return EFI_ERROR;
return EFI_LOAD_ERROR;
}
*image_size = kernel_memsize;
}
Expand Down

0 comments on commit 6091c9c

Please sign in to comment.