From: Wei Yongjun Date: Fri, 22 Jan 2010 06:21:29 +0000 (+0800) Subject: KVM: x86: Fix leak of free lapic date in kvm_arch_vcpu_init() X-Git-Tag: v2.6.33-rc6~24^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=443c39bc9ef7d8f648408d74c97e943f3bb3f48a;p=pandora-kernel.git KVM: x86: Fix leak of free lapic date in kvm_arch_vcpu_init() 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed