KVM: add missing cleanup_srcu_struct
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Jun 2014 11:44:17 +0000 (13:44 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Jun 2014 11:44:17 +0000 (13:44 +0200)
Reported-by: hrg <hrgstephen@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c

index 95b4c2b3906ac0f8c474f86d4819994a4d67f3b2..c86be0f983db706c81cfe60aedfb77f4a315e20f 100644 (file)
@@ -608,6 +608,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();