aboutsummaryrefslogtreecommitdiffstats
path: root/sys-boot/grub/files/grub-2.06-012-move-load-fdt.patch
blob: b3482251d1126fe75037bbad4e8ca88ff4ab6b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- grub-2.06/grub-core/loader/efi/linux.c	2021-08-25 11:30:12.186661512 +0200
+++ grub-2.06-mod/grub-core/loader/efi/linux.c	2021-08-25 11:25:50.337761208 +0200
@@ -95,13 +95,14 @@
 
   void *fdt;
 
+  fdt = grub_fdt_load (GRUB_EFI_LINUX_FDT_EXTRA_SPACE);
+
+  if (!fdt)
+	goto failure;
+
   /* Set initrd info */
   if (initrd_start && initrd_end > initrd_start)
     {
-      fdt = grub_fdt_load (GRUB_EFI_LINUX_FDT_EXTRA_SPACE);
-
-      if (!fdt)
-	goto failure;
 
       node = grub_fdt_find_subnode (fdt, 0, "chosen");
       if (node < 0)