]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
grub-core/loader/efi/fdt.c: Fixup grub_file_open() call
authorLeif Lindholm <leif.lindholm@linaro.org>
Wed, 14 Nov 2018 19:29:17 +0000 (19:29 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 16 Nov 2018 13:42:50 +0000 (14:42 +0100)
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 <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/efi/fdt.c

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