[PATCH] ofw: fix infinite loop
Aleksey Kuleshov
rndfax at yandex.ru
Wed Jul 8 19:21:43 UTC 2015
Fix obvious typo in ofw bus when there is no interrupt-parent for the node.
---
sys/dev/ofw/ofw_bus_subr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c
index 233675d..c7a50db 100644
--- a/sys/dev/ofw/ofw_bus_subr.c
+++ b/sys/dev/ofw/ofw_bus_subr.c
@@ -444,7 +444,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;
}
--
2.4.5
More information about the freebsd-current
mailing list