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