ARM/dom0: Avoid using a variable length array in make_memory_node()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Sep 2018 13:00:02 +0000 (14:00 +0100)
committerJulien Grall <julien.grall@arm.com>
Mon, 24 Sep 2018 13:43:47 +0000 (14:43 +0100)
commitcd8015b634b005a3911bd6025351cd854d63a82a
tree5f64654ead614917529eb5f7f570cdb66a0019f2
parent17bd254a508f4174fe0d56a9f1b9892b7649b4b9
ARM/dom0: Avoid using a variable length array in make_memory_node()

The reg[] array can have a maximum size of 8 in practice, so use the worst
case calculation rather than making it variable length.

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