summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-03 13:44:17 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-06-03 13:44:17 +0200
commit820b3fcdeb80d30410f4427d2cbf9161c35fdeef (patch)
tree579a6098cf53d8f2faaf69e2d825fd45485e6134 /virt
parent53ea2e462e1b5b898d244bb113993df709107e32 (diff)
downloadlinux-820b3fcdeb80d30410f4427d2cbf9161c35fdeef.tar.gz
linux-820b3fcdeb80d30410f4427d2cbf9161c35fdeef.tar.bz2
linux-820b3fcdeb80d30410f4427d2cbf9161c35fdeef.zip
KVM: add missing cleanup_srcu_struct
Reported-by: hrg <hrgstephen@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-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();