KVM: arm/arm64: vgic-its: Cleanup after failed ITT restore
authorChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 11:31:12 +0000 (13:31 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 9 May 2017 10:19:46 +0000 (12:19 +0200)
commita2b19e6e2d4bb662a64799541c144fd94f8fb024
treec158183a0bfdccb96e951da65f38ebdf8973ebd3
parent67723c25ce7fc0bd4f1b0f4bcbee5f0d114516ca
KVM: arm/arm64: vgic-its: Cleanup after failed ITT restore

When failing to restore the ITT for a DTE, we should remove the failed
device entry from the list and free the object.

We slightly refactor vgic_its_destroy to be able to reuse the now
separate vgic_its_free_dte() function.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
virt/kvm/arm/vgic/vgic-its.c