]> err.no Git - linux-2.6/commitdiff
KVM: Free apic access page on vm destruction
authorAvi Kivity <avi@qumranet.com>
Tue, 25 Mar 2008 09:26:13 +0000 (11:26 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 09:00:54 +0000 (12:00 +0300)
Noticed by Marcelo Tosatti.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c

index e6a38bf9a45ec6978207cf044761b930826b0e56..c7ad2352227adafc99e710fac15b410297ebaedc 100644 (file)
@@ -3853,6 +3853,8 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
        kfree(kvm->arch.vioapic);
        kvm_free_vcpus(kvm);
        kvm_free_physmem(kvm);
+       if (kvm->arch.apic_access_page)
+               put_page(kvm->arch.apic_access_page);
        kfree(kvm);
 }