bc092b9
From 4f8471532d454b2db96434c28bf7105ed69e0f4d Mon Sep 17 00:00:00 2001
bc092b9
From: Vladimir Serbinenko <phcoder@gmail.com>
bc092b9
Date: Tue, 9 May 2017 08:39:40 +0200
bc092b9
Subject: [PATCH 030/176] Fix bug on FDT nodes with compatible property
bc092b9
bc092b9
---
bc092b9
 grub-core/bus/fdt.c | 2 ++
bc092b9
 1 file changed, 2 insertions(+)
bc092b9
bc092b9
diff --git a/grub-core/bus/fdt.c b/grub-core/bus/fdt.c
bc092b9
index 6fb077000..34d535457 100644
bc092b9
--- a/grub-core/bus/fdt.c
bc092b9
+++ b/grub-core/bus/fdt.c
bc092b9
@@ -43,6 +43,8 @@ is_compatible (struct grub_fdtbus_driver *driver,
bc092b9
   grub_size_t compatible_size;
bc092b9
   const char *compatible = grub_fdt_get_prop (dtb, node, "compatible",
bc092b9
 					      &compatible_size);
bc092b9
+  if (!compatible)
bc092b9
+    return 0;
bc092b9
   const char *compatible_end = compatible + compatible_size;
bc092b9
   while (compatible < compatible_end)
bc092b9
     {
bc092b9
-- 
bc092b9
2.13.0
bc092b9