projects
/
grub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d11ced1
)
Fix bug on FDT nodes with compatible property
author
Vladimir Serbinenko
<phcoder@gmail.com>
Tue, 9 May 2017 06:39:40 +0000
(08:39 +0200)
committer
Vladimir Serbinenko
<phcoder@gmail.com>
Tue, 9 May 2017 06:43:09 +0000
(08:43 +0200)
grub-core/bus/fdt.c
patch
|
blob
|
history
diff --git
a/grub-core/bus/fdt.c
b/grub-core/bus/fdt.c
index
6fb0770
..
34d5354
100644
(file)
--- 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)
{