From 8738ab40c526e30fa9dc4bed410a4bf26fa4a1cc Mon Sep 17 00:00:00 2001 From: Leif Lindholm Date: Wed, 14 Nov 2018 19:29:18 +0000 Subject: [PATCH] arm64/efi: Fix breakage caused by verifiers - add variable "err" (used but not defined), - add GRUB_FILE_TYPE_LINUX_KERNEL to grub_file_open() call. Signed-off-by: Leif Lindholm Reviewed-by: Daniel Kiper --- 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 8588a0378..185ca6332 100644 --- a/grub-core/loader/arm64/linux.c +++ b/grub-core/loader/arm64/linux.c @@ -290,6 +290,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); @@ -299,7 +300,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;