KVM: fix cleanup_srcu_struct on vm destruction
[safe/jmp/linux-2.6] / arch / powerpc / kvm / powerpc.c
index 2c29116..51aedd7 100644 (file)
@@ -137,6 +137,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
 {
        kvmppc_free_vcpus(kvm);
        kvm_free_physmem(kvm);
+       cleanup_srcu_struct(&kvm->srcu);
        kfree(kvm);
 }