KVM: add missing cleanup_srcu_struct
Reported-by: hrg <hrgstephen@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
53ea2e462e
commit
820b3fcdeb
|
@ -608,6 +608,7 @@ static void kvm_destroy_vm(struct kvm *kvm)
|
||||||
kvm_arch_destroy_vm(kvm);
|
kvm_arch_destroy_vm(kvm);
|
||||||
kvm_destroy_devices(kvm);
|
kvm_destroy_devices(kvm);
|
||||||
kvm_free_physmem(kvm);
|
kvm_free_physmem(kvm);
|
||||||
|
cleanup_srcu_struct(&kvm->irq_srcu);
|
||||||
cleanup_srcu_struct(&kvm->srcu);
|
cleanup_srcu_struct(&kvm->srcu);
|
||||||
kvm_arch_free_vm(kvm);
|
kvm_arch_free_vm(kvm);
|
||||||
hardware_disable_all();
|
hardware_disable_all();
|
||||||
|
|
Loading…
Reference in New Issue