Blame SOURCES/0337-grub-core-loader-efi-fdt.c-Fixup-grub_file_open-call.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:17 +0000
80913e
Subject: [PATCH] grub-core/loader/efi/fdt.c: Fixup grub_file_open() call
80913e
80913e
The verifiers framework changed the API of grub_file_open(), but did not
80913e
fix up all users. Add the file type GRUB_FILE_TYPE_DEVICE_TREE_IMAGE
80913e
to the "devicetree" command handler call.
80913e
80913e
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
80913e
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
80913e
---
80913e
 grub-core/loader/efi/fdt.c | 2 +-
80913e
 1 file changed, 1 insertion(+), 1 deletion(-)
80913e
80913e
diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c
b32e65
index a9dbcfdfe..e3ee3ad79 100644
80913e
--- a/grub-core/loader/efi/fdt.c
80913e
+++ b/grub-core/loader/efi/fdt.c
80913e
@@ -125,7 +125,7 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)),
80913e
       return GRUB_ERR_NONE;
80913e
     }
80913e
 
80913e
-  dtb = grub_file_open (argv[0]);
80913e
+  dtb = grub_file_open (argv[0], GRUB_FILE_TYPE_DEVICE_TREE_IMAGE);
80913e
   if (!dtb)
80913e
     goto out;
80913e