KVM: arm/arm64: Hold slots_lock when unregistering kvm io bus devices
authorChristoffer Dall <cdall@linaro.org>
Wed, 17 May 2017 19:16:09 +0000 (21:16 +0200)
committerChristoffer Dall <cdall@linaro.org>
Thu, 18 May 2017 09:18:16 +0000 (11:18 +0200)
commitfa472fa91a5a0b241f5ddae927d2e235d07545df
tree5d3abeb94ddab496eea44328c15f5d49a0e61259
parent552c9f47f8d451830a6b47151c6d2db77f77cc3e
KVM: arm/arm64: Hold slots_lock when unregistering kvm io bus devices

We were not holding the kvm->slots_lock as required when calling
kvm_io_bus_unregister_dev() as required.

This only affects the error path, but still, let's do our due
diligence.

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