KVM: s390: Fix possible memory leak of in kvm_arch_vcpu_create()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 9 Mar 2010 06:37:53 +0000 (14:37 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:19 +0000 (12:15 +0300)
commit7b06bf2ffa15e119c7439ed0b024d44f66d7b605
tree8572708678cb7ee3d541bca927581f5ce7f59cba
parent835e6b80478e59820cff127adba3e518ae5a43f5
KVM: s390: Fix possible memory leak of in kvm_arch_vcpu_create()

This patch fixed possible memory leak in kvm_arch_vcpu_create()
under s390, which would happen when kvm_arch_vcpu_create() fails.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/kvm-s390.c