summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-03 15:44:17 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-06-03 15:44:17 +0400
commit820b3fcdeb80d30410f4427d2cbf9161c35fdeef (patch)
tree579a6098cf53d8f2faaf69e2d825fd45485e6134 /virt/kvm
parent53ea2e462e1b5b898d244bb113993df709107e32 (diff)
downloadlinux-820b3fcdeb80d30410f4427d2cbf9161c35fdeef.tar.xz
KVM: add missing cleanup_srcu_struct
Reported-by: hrg <hrgstephen@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/kvm_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 95b4c2b3906a..c86be0f983db 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -608,6 +608,7 @@ static void kvm_destroy_vm(struct kvm *kvm)
kvm_arch_destroy_vm(kvm);
kvm_destroy_devices(kvm);
kvm_free_physmem(kvm);
+ cleanup_srcu_struct(&kvm->irq_srcu);
cleanup_srcu_struct(&kvm->srcu);
kvm_arch_free_vm(kvm);
hardware_disable_all();