KVM: fix cleanup_srcu_struct on vm destruction
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / kvm / powerpc.c
index 2c291161df89018c0d14a96d29749bef77086177..51aedd7f16bcb14d5d2f073da2fc55a53ec18575 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);
 }