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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user