KVM: x86: Fix leak of free lapic date in kvm_arch_vcpu_init()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 22 Jan 2010 06:21:29 +0000 (14:21 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 25 Jan 2010 14:26:40 +0000 (12:26 -0200)
In function kvm_arch_vcpu_init(), if the memory malloc for
vcpu->arch.mce_banks is fail, it does not free the memory
of lapic date. This patch fixed it.

Cc: stable@kernel.org
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

No differences found