summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorCarsten Otte <cotte@de.ibm.com>2008-06-27 15:05:34 +0200
committerAvi Kivity <avi@qumranet.com>2008-07-20 12:42:37 +0300
commitdfdded7c41e5b68c79a9f8a942d41f56bc265ba4 (patch)
tree7e5949075ae9e2f47bc953c45cb7c8419d776761 /arch/s390
parenteff0114ac3d3a20a5c93b31b00134e59bfc75189 (diff)
downloadop-kernel-dev-dfdded7c41e5b68c79a9f8a942d41f56bc265ba4.zip
op-kernel-dev-dfdded7c41e5b68c79a9f8a942d41f56bc265ba4.tar.gz
KVM: Fix memory leak on guest exit
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>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kvm/kvm-s390.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 4585c8a..b802ce6 100644
--- 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);
OpenPOWER on IntegriCloud