arm: fix Dom build after cd8015b634
authorJan Beulich <JBeulich@suse.com>
Tue, 25 Sep 2018 12:56:58 +0000 (06:56 -0600)
committerJulien Grall <julien.grall@arm.com>
Tue, 25 Sep 2018 16:19:31 +0000 (17:19 +0100)
The removal of the VLA there has changed sizeof() for the array.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain_build.c

index ac8d4799f3ad9a02c9d6e1ca18101280805e588e..f552154e9394165bf1964ae1aa1c6008df60be43 100644 (file)
@@ -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;