]> xenbits.xensource.com Git - xen.git/commit
xen/arm: vgic-v3-its: Make vgic_v3_its_free_domain idempotent
authorJulien Grall <julien.grall@arm.com>
Tue, 4 Sep 2018 19:21:53 +0000 (20:21 +0100)
committerJulien Grall <julien.grall@arm.com>
Mon, 1 Oct 2018 11:04:16 +0000 (12:04 +0100)
commitdcc18294ff3ecb66d0fa695fd22e1e76e42a8808
tree976f857438f3d3f13400e7c4fc4d98dc7999a57c
parent146bb7e1934afc5056179fffbf8e24c0db415f8c
xen/arm: vgic-v3-its: Make vgic_v3_its_free_domain idempotent

vgic_v3_its_free_domain may be called before vgic_v3_its_init_domain if
the vGIC was failing to initalize itself. This means the list would be
unitialized and result in a crash.

Thankfully, we only allow ITS for the hardware domain. So the crash is
not a security issue. Fix it by checking whether the list the NULL.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic-v3-its.c