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)
commitb7af40433870aa0636932ad39b0c48a0cb319057
tree8eedc46a94d00d986e3a50b716e14c76e1bacaea
parent7567cae105e435b53e5a3e778546dd3ec53e3204
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