mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
Fix bug on FDT nodes with compatible property
This commit is contained in:
1 parent
d11ced1e1f
commit
4f8471532d
1 file changed
+2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user