]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Fix memory leak of vcpu->run
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 26 Nov 2008 13:51:08 +0000 (14:51 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:03 +0000 (16:55 +0200)
commitba82a1cafcc8f32d02e1d9f899b3f32413082c67
tree956c25e52ef23e7127bef18b8b53d82e5e62220d
parent2cf6e4cb595980347d92cf796858c0282604af29
KVM: s390: Fix memory leak of vcpu->run

The s390 backend of kvm never calls kvm_vcpu_uninit. This causes
a memory leak of vcpu->run pages.
Lets call kvm_vcpu_uninit in kvm_arch_vcpu_destroy to free
the vcpu->run.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/kvm-s390.c