[PATCH 2/4] kernel/resource: Populate child pointer in find_next_iomem_res()
Marc Zyngier
maz at kernel.org
Wed May 26 12:05:29 PDT 2021
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 at kernel.org>
---
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
More information about the linux-arm-kernel
mailing list