|
|
5975ab |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
5975ab |
From: Leif Lindholm <leif.lindholm@linaro.org>
|
|
|
5975ab |
Date: Wed, 14 Nov 2018 19:29:18 +0000
|
|
|
5975ab |
Subject: [PATCH] arm64/efi: Fix breakage caused by verifiers
|
|
|
5975ab |
|
|
|
5975ab |
- add variable "err" (used but not defined),
|
|
|
5975ab |
- add GRUB_FILE_TYPE_LINUX_KERNEL to grub_file_open() call.
|
|
|
5975ab |
|
|
|
5975ab |
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
|
5975ab |
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
|
5975ab |
|
|
|
5975ab |
Conflicts:
|
|
|
5975ab |
grub-core/loader/arm64/linux.c
|
|
|
5975ab |
---
|
|
|
5975ab |
grub-core/loader/arm64/linux.c | 3 ++-
|
|
|
5975ab |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
5975ab |
|
|
|
5975ab |
diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c
|
|
|
5975ab |
index 48ea66596ad..864724dd4fa 100644
|
|
|
5975ab |
--- a/grub-core/loader/arm64/linux.c
|
|
|
5975ab |
+++ b/grub-core/loader/arm64/linux.c
|
|
|
5975ab |
@@ -338,6 +338,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
|
|
|
5975ab |
struct linux_armxx_kernel_header lh;
|
|
|
5975ab |
struct grub_armxx_linux_pe_header *pe;
|
|
|
5975ab |
int rc;
|
|
|
5975ab |
+ grub_err_t err;
|
|
|
5975ab |
|
|
|
5975ab |
grub_dl_ref (my_mod);
|
|
|
5975ab |
|
|
|
5975ab |
@@ -347,7 +348,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
|
|
|
5975ab |
goto fail;
|
|
|
5975ab |
}
|
|
|
5975ab |
|
|
|
5975ab |
- file = grub_file_open (argv[0]);
|
|
|
5975ab |
+ file = grub_file_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL);
|
|
|
5975ab |
if (!file)
|
|
|
5975ab |
goto fail;
|
|
|
5975ab |
|