]> xenbits.xensource.com Git - xen.git/commit
xen/arm: domain_vgic_init: Avoid double free on shared_irqs
authorJulien Grall <julien.grall@linaro.org>
Fri, 25 Jul 2014 14:17:26 +0000 (15:17 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 9 Sep 2014 10:43:38 +0000 (11:43 +0100)
commit7b41618f5a08145b0198af4a8a2ce361d7e677e6
tree4b63aa07cb1a495821e10b0686b9988589ae80f6
parent77e6abba1f853b4c9a2628f32772830514fd0f3f
xen/arm: domain_vgic_init: Avoid double free on shared_irqs

When the function domain_vgic_init is failing to initialize pending_irqs,
it will free shared_irqs. Few call later, domain_vgic_free will be called
an try to free a second time the same variable. This will result to a double
free.

Remove the free in domain_vgic_init and rely on domain_vgic_free to correctly
release the memory.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic.c