Fix a crash while iterating compat strings when no match is found.

Spotted by:	ian
This commit is contained in:
Jared McNeill 2016-05-31 21:58:09 +00:00
parent ee7e05ea0f
commit b8f34c287a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301082

View file

@ -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;