Blame SOURCES/0337-grub-core-loader-efi-fdt.c-Fixup-grub_file_open-call.patch

3efed6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3efed6
From: Leif Lindholm <leif.lindholm@linaro.org>
3efed6
Date: Wed, 14 Nov 2018 19:29:17 +0000
3efed6
Subject: [PATCH] grub-core/loader/efi/fdt.c: Fixup grub_file_open() call
3efed6
3efed6
The verifiers framework changed the API of grub_file_open(), but did not
3efed6
fix up all users. Add the file type GRUB_FILE_TYPE_DEVICE_TREE_IMAGE
3efed6
to the "devicetree" command handler call.
3efed6
3efed6
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
3efed6
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
3efed6
---
3efed6
 grub-core/loader/efi/fdt.c | 2 +-
3efed6
 1 file changed, 1 insertion(+), 1 deletion(-)
3efed6
3efed6
diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c
b71686
index a9dbcfdfe..e3ee3ad79 100644
3efed6
--- a/grub-core/loader/efi/fdt.c
3efed6
+++ b/grub-core/loader/efi/fdt.c
3efed6
@@ -125,7 +125,7 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)),
3efed6
       return GRUB_ERR_NONE;
3efed6
     }
3efed6
 
3efed6
-  dtb = grub_file_open (argv[0]);
3efed6
+  dtb = grub_file_open (argv[0], GRUB_FILE_TYPE_DEVICE_TREE_IMAGE);
3efed6
   if (!dtb)
3efed6
     goto out;
3efed6