From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/5] efi/arm64: Avoid EFI_ERROR as a generic return code
Date: Wed, 2 Jul 2014 14:54:39 +0200 [thread overview]
Message-ID: <1404305683-26501-2-git-send-email-ard.biesheuvel@linaro.org> (raw)
In-Reply-To: <1404305683-26501-1-git-send-email-ard.biesheuvel@linaro.org>
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>
---
arch/arm64/kernel/efi-stub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/efi-stub.c b/arch/arm64/kernel/efi-stub.c
index e786e6cdc400..7aa7155a9740 100644
--- a/arch/arm64/kernel/efi-stub.c
+++ b/arch/arm64/kernel/efi-stub.c
@@ -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;
}
--
1.8.3.2
next prev parent reply other threads:[~2014-07-02 12:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 12:54 [PATCH v3 0/5] efistub: convert into static library Ard Biesheuvel
2014-07-02 12:54 ` Ard Biesheuvel [this message]
2014-07-08 0:22 ` [PATCH v3 1/5] efi/arm64: Avoid EFI_ERROR as a generic return code Roy Franz
2014-07-02 12:54 ` [PATCH v3 2/5] efi/x86: efistub: Move shared dependencies to <asm/efi.h> Ard Biesheuvel
2014-07-02 12:54 ` [PATCH v3 3/5] efi/arm64: " Ard Biesheuvel
2014-07-02 12:54 ` [PATCH v3 4/5] efi: efistub: refactor stub components Ard Biesheuvel
2014-07-02 12:54 ` [PATCH v3 5/5] efi: efistub: convert into static library Ard Biesheuvel
2014-07-07 19:31 ` [PATCH v3 0/5] " Matt Fleming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1404305683-26501-2-git-send-email-ard.biesheuvel@linaro.org \
--to=ard.biesheuvel@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).