aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2015-07-15 13:28:25 +0000
committerAndrew Turner <andrew@FreeBSD.org>2015-07-15 13:28:25 +0000
commit63e8633e8027b22cdb0c5a2a5673d3062ae7ab02 (patch)
tree743e9e70f958b98875d174cb18c2059fda2b4bd7 /sys/dev/ofw
parent7dbe8f175b3ee70dc0aab786644c66629b78b1e0 (diff)
downloadsrc-63e8633e8027b22cdb0c5a2a5673d3062ae7ab02.tar.gz
src-63e8633e8027b22cdb0c5a2a5673d3062ae7ab02.zip
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
Notes
Notes: svn path=/head/; revision=285601
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_bus_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c
index 448f7caedfa4..47d6267b8d5d 100644
--- a/sys/dev/ofw/ofw_bus_subr.c
+++ b/sys/dev/ofw/ofw_bus_subr.c
@@ -445,7 +445,7 @@ ofw_bus_intr_to_rl(device_t dev, phandle_t node,
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;
}