hw/ppc/pnv: Avoid dynamic stack allocation
commita580fdcd609e1db77ef5a1cbcbfd2af5ca05c939
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 19 Aug 2022 15:39:26 +0000 (19 16:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Sep 2022 15:38:28 +0000 (22 16:38 +0100)
treee759cbd92efa60c75de43cd2aac08bc09118ddbd
parentc140a69055bad798a335ea3c83aebceaca82bde0
hw/ppc/pnv: Avoid dynamic stack allocation

Use autofree heap allocation instead of variable-length
array on the stack.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-id: 20220819153931.3147384-7-peter.maydell@linaro.org
hw/ppc/pnv.c
hw/ppc/spapr.c
hw/ppc/spapr_pci_nvlink2.c