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

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to