]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: SVM: Fix memory leaks that happen when svm_create_vcpu() fails
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Tue, 9 Mar 2010 05:55:19 +0000 (14:55 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:04 +0000 (07:48 -0700)
commitdee49b4925d922229656f4d3c15da33ae5d036ed
treec4e1d1d5fe2861499e8a22c0c8fd690af720a5f8
parent68f35500d733ed5cc3153c09f685e0abcfce4956
KVM: SVM: Fix memory leaks that happen when svm_create_vcpu() fails

(Cherry-picked from commit b7af40433870aa0636932ad39b0c48a0cb319057)

svm_create_vcpu() does not free the pages allocated during the creation
when it fails to complete the allocations. This patch fixes it.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/svm.c