Author: jmcneill
Date: Tue May 31 21:58:09 2016
New Revision: 301082
URL: https://svnweb.freebsd.org/changeset/base/301082

Log:
  Fix a crash while iterating compat strings when no match is found.
  
  Spotted by:   ian

Modified:
  head/sys/arm/allwinner/aw_ccu.c

Modified: head/sys/arm/allwinner/aw_ccu.c
==============================================================================
--- head/sys/arm/allwinner/aw_ccu.c     Tue May 31 21:34:02 2016        
(r301081)
+++ head/sys/arm/allwinner/aw_ccu.c     Tue May 31 21:58:09 2016        
(r301082)
@@ -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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to