Blame SOURCES/0338-arm64-efi-Fix-breakage-caused-by-verifiers.patch

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