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
This commit is contained in:
parent
7dbe8f175b
commit
63e8633e80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285601
@ -445,7 +445,7 @@ ofw_bus_intr_to_rl(device_t dev, phandle_t node,
|
|||||||
if (OF_searchencprop(node, "interrupt-parent", &iparent,
|
if (OF_searchencprop(node, "interrupt-parent", &iparent,
|
||||||
sizeof(iparent)) == -1) {
|
sizeof(iparent)) == -1) {
|
||||||
for (iparent = node; iparent != 0;
|
for (iparent = node; iparent != 0;
|
||||||
iparent = OF_parent(node)) {
|
iparent = OF_parent(iparent)) {
|
||||||
if (OF_hasprop(iparent, "interrupt-controller"))
|
if (OF_hasprop(iparent, "interrupt-controller"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user