[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] arm64/efi: fix breakage caused by verifiers
From: |
Leif Lindholm |
Subject: |
[PATCH 4/5] arm64/efi: fix breakage caused by verifiers |
Date: |
Wed, 14 Nov 2018 19:29:18 +0000 |
- add variable "err" (used but not defined)
- add GRUB_FILE_TYPE_LINUX_KERNEL to grub_file_open call
Signed-off-by: Leif Lindholm <address@hidden>
---
grub-core/loader/arm64/linux.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c
index b8315b53f..c37295c0b 100644
--- a/grub-core/loader/arm64/linux.c
+++ b/grub-core/loader/arm64/linux.c
@@ -288,6 +288,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
{
grub_file_t file = 0;
struct linux_armxx_kernel_header lh;
+ grub_err_t err;
grub_dl_ref (my_mod);
@@ -297,7 +298,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
goto fail;
}
- file = grub_file_open (argv[0]);
+ file = grub_file_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL);
if (!file)
goto fail;
--
2.11.0
- [PATCH 0/5] Fix non-x86 builds after verifiers framework merged, Leif Lindholm, 2018/11/14
- [PATCH 2/5] file.h: add device tree file type, Leif Lindholm, 2018/11/14
- [PATCH 1/5] grub/verify.h: add include guard, Leif Lindholm, 2018/11/14
- [PATCH 5/5] arm-uboot, ia64, sparc64: fix up grub_file_open calls, Leif Lindholm, 2018/11/14
- [PATCH 3/5] loader/efi/fdt.c: fixup grub_file_open call, Leif Lindholm, 2018/11/14
- [PATCH 4/5] arm64/efi: fix breakage caused by verifiers,
Leif Lindholm <=
- Re: [PATCH 0/5] Fix non-x86 builds after verifiers framework merged, Fu Wei Fu, 2018/11/15
- arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Lee Jones, 2018/11/20
- Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Julien Grall, 2018/11/20
- Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Daniel Kiper, 2018/11/21