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

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