]> git.baikalelectronics.ru Git - kernel.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)
committerAvi Kivity <avi@redhat.com>
Tue, 20 Apr 2010 09:55:04 +0000 (12:55 +0300)
commitcb419a6b05ff8f5b13b6cc317846ec2c9aefa68a
tree8eedc46a94d00d986e3a50b716e14c76e1bacaea
parentf64c8cdbe1af2adbd38d4812552cd6ad1b26bfe1
KVM: SVM: Fix memory leaks that happen when svm_create_vcpu() fails

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>
arch/x86/kvm/svm.c