mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 17:10:36 +00:00
Fix a crash while iterating compat strings when no match is found.
Spotted by: ian
This commit is contained in:
parent
ee7e05ea0f
commit
b8f34c287a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301082
|
@ -192,7 +192,7 @@ aw_ccu_search_compatible(void)
|
|||
phandle_t root;
|
||||
|
||||
root = OF_finddevice("/");
|
||||
for (compat = compat_data; compat_data->ocd_str != NULL; compat++)
|
||||
for (compat = compat_data; compat->ocd_str != NULL; compat++)
|
||||
if (fdt_is_compatible(root, compat->ocd_str))
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue