2017-06-16 19:31:32 +00:00
|
|
|
From 4f8471532d454b2db96434c28bf7105ed69e0f4d Mon Sep 17 00:00:00 2001
|
|
|
|
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
Date: Tue, 9 May 2017 08:39:40 +0200
|
2018-05-10 15:48:20 +00:00
|
|
|
Subject: [PATCH 030/238] Fix bug on FDT nodes with compatible property
|
2017-06-16 19:31:32 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
grub-core/bus/fdt.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/grub-core/bus/fdt.c b/grub-core/bus/fdt.c
|
2018-02-27 18:56:41 +00:00
|
|
|
index 6fb077000a5..34d53545732 100644
|
2017-06-16 19:31:32 +00:00
|
|
|
--- a/grub-core/bus/fdt.c
|
|
|
|
+++ b/grub-core/bus/fdt.c
|
|
|
|
@@ -43,6 +43,8 @@ is_compatible (struct grub_fdtbus_driver *driver,
|
|
|
|
grub_size_t compatible_size;
|
|
|
|
const char *compatible = grub_fdt_get_prop (dtb, node, "compatible",
|
|
|
|
&compatible_size);
|
|
|
|
+ if (!compatible)
|
|
|
|
+ return 0;
|
|
|
|
const char *compatible_end = compatible + compatible_size;
|
|
|
|
while (compatible < compatible_end)
|
|
|
|
{
|
|
|
|
--
|
2018-05-10 15:48:20 +00:00
|
|
|
2.17.0
|
2017-06-16 19:31:32 +00:00
|
|
|
|