]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
arm64/efi: Fix breakage caused by verifiers
authorLeif Lindholm <leif.lindholm@linaro.org>
Wed, 14 Nov 2018 19:29:18 +0000 (19:29 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 16 Nov 2018 13:42:51 +0000 (14:42 +0100)
  - add variable "err" (used but not defined),
  - add GRUB_FILE_TYPE_LINUX_KERNEL to grub_file_open() call.

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/arm64/linux.c

index b8315b53fa507e34af450ee2dd4191bc3193634f..c37295c0b60e07daea1c593e401979e1268a341f 100644 (file)
@@ -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;