Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2015 13:28:26 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285601 - head/sys/dev/ofw
Message-ID:  <201507151328.t6FDSQWx071698@svnmir.geo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Wed Jul 15 13:28:25 2015
New Revision: 285601
URL: https://svnweb.freebsd.org/changeset/base/285601

Log:
  Fix an infinite loop when a node doesn't have an interrupt-parent property.
  
  Submitted by:	Aleksey Kuleshov <rndfax@yandex.ru>
  Differential Revision: https://reviews.freebsd.org/D3041

Modified:
  head/sys/dev/ofw/ofw_bus_subr.c

Modified: head/sys/dev/ofw/ofw_bus_subr.c
==============================================================================
--- head/sys/dev/ofw/ofw_bus_subr.c	Wed Jul 15 12:04:12 2015	(r285600)
+++ head/sys/dev/ofw/ofw_bus_subr.c	Wed Jul 15 13:28:25 2015	(r285601)
@@ -445,7 +445,7 @@ ofw_bus_intr_to_rl(device_t dev, phandle
 		if (OF_searchencprop(node, "interrupt-parent", &iparent,
 		    sizeof(iparent)) == -1) {
 			for (iparent = node; iparent != 0;
-			    iparent = OF_parent(node)) {
+			    iparent = OF_parent(iparent)) {
 				if (OF_hasprop(iparent, "interrupt-controller"))
 					break;
 			}



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