]> err.no Git - linux-2.6/commitdiff
KVM: Fix memory leak on guest exit
authorCarsten Otte <cotte@de.ibm.com>
Fri, 27 Jun 2008 13:05:34 +0000 (15:05 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:37 +0000 (12:42 +0300)
This patch fixes a memory leak, we want to free the physmem when destroying
the vm.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/s390/kvm/kvm-s390.c

index 4585c8ac2b0cf78f66174c4b2b255068b6796fa8..b802ce6f675fdc2e3ed96a62dc25ca05878ae906 100644 (file)
@@ -194,6 +194,7 @@ out_nokvm:
 void kvm_arch_destroy_vm(struct kvm *kvm)
 {
        debug_unregister(kvm->arch.dbf);
+       kvm_free_physmem(kvm);
        free_page((unsigned long)(kvm->arch.sca));
        kfree(kvm);
        module_put(THIS_MODULE);