projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eff0114
)
KVM: Fix memory leak on guest exit
author
Carsten Otte
<cotte@de.ibm.com>
Fri, 27 Jun 2008 13:05:34 +0000
(15:05 +0200)
committer
Avi 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/kvm/kvm-s390.c
b/arch/s390/kvm/kvm-s390.c
index 4585c8ac2b0cf78f66174c4b2b255068b6796fa8..b802ce6f675fdc2e3ed96a62dc25ca05878ae906 100644
(file)
--- a/
arch/s390/kvm/kvm-s390.c
+++ b/
arch/s390/kvm/kvm-s390.c
@@
-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);