]> www.infradead.org Git - users/dwmw2/linux.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>
Thu, 27 Nov 2008 12:40:22 +0000 (14:40 +0200)
commit93bde9fd0d39f18d1bdb0f0b7dbea763277fc83a
tree6d51c3133b18938d343dc8720847d3286984dfe5
parent06f8454f6240786cef12599de8fff54ab212d181
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