KVM: fix cleanup_srcu_struct on vm destruction
[safe/jmp/linux-2.6] / arch / x86 / kvm / x86.c
index 9b0758b..322c2c5 100644 (file)
@@ -5547,6 +5547,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
                put_page(kvm->arch.apic_access_page);
        if (kvm->arch.ept_identity_pagetable)
                put_page(kvm->arch.ept_identity_pagetable);
+       cleanup_srcu_struct(&kvm->srcu);
        kfree(kvm->arch.aliases);
        kfree(kvm);
 }