Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2016 21:58:09 +0000 (UTC)
From:      Jared McNeill <jmcneill@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301082 - head/sys/arm/allwinner
Message-ID:  <201605312158.u4VLw9Mx016943@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605312158.u4VLw9Mx016943>