KVM: add missing cleanup_srcu_struct

Reported-by: hrg <hrgstephen@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 820b3fcdeb)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
This commit is contained in:
Paolo Bonzini
2014-06-03 13:44:17 +02:00
committed by Christoffer Dall
parent 502f5822c7
commit c3bd5cf976

View File

@@ -607,6 +607,7 @@ static void kvm_destroy_vm(struct kvm *kvm)
kvm_arch_destroy_vm(kvm);
kvm_destroy_devices(kvm);
kvm_free_physmem(kvm);
cleanup_srcu_struct(&kvm->irq_srcu);
cleanup_srcu_struct(&kvm->srcu);
kvm_arch_free_vm(kvm);
hardware_disable_all();