projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee16c8
)
KVM: Free apic access page on vm destruction
author
Avi Kivity
<avi@qumranet.com>
Tue, 25 Mar 2008 09:26:13 +0000
(11:26 +0200)
committer
Avi 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index e6a38bf9a45ec6978207cf044761b930826b0e56..c7ad2352227adafc99e710fac15b410297ebaedc 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-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);
}