From 6cf4d8d3aa2699ff1ffa9e56240a6d188f91938c Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 25 Sep 2018 06:56:58 -0600 Subject: [PATCH] arm: fix Dom build after cd8015b634 The removal of the VLA there has changed sizeof() for the array. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Acked-by: Julien Grall --- xen/arch/arm/domain_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index ac8d4799f3..f552154e93 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -568,7 +568,7 @@ static int __init make_memory_node(const struct domain *d, dt_child_set_range(&cells, addrcells, sizecells, start, size); } - res = fdt_property(fdt, "reg", reg, sizeof(reg)); + res = fdt_property(fdt, "reg", reg, nr_cells * sizeof(*reg)); if ( res ) return res; -- 2.30.2