[PATCH 2/4] kernel/resource: Populate child pointer in find_next_iomem_res()
From: Marc Zyngier
Date: Wed May 26 2021 - 15:05:58 EST
When find_next_iomem_res() returns a resource, it doesn't
populate the child pointer (but does so with the parent).
As we are about to need to arse child resources, populate
this pointer as well.
Signed-off-by: Marc Zyngier <maz@xxxxxxxxxx>
---
kernel/resource.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/resource.c b/kernel/resource.c
index ca9f5198a01f..311b8d2c9957 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -377,6 +377,7 @@ static int find_next_iomem_res(resource_size_t start, resource_size_t end,
.flags = p->flags,
.desc = p->desc,
.parent = p->parent,
+ .child = p->child,
};
}
--
2.30.2