From: Jan Kiszka Date: Tue, 12 Apr 2011 23:27:55 +0000 (+0200) Subject: KVM: VMX: Ensure that vmx_create_vcpu always returns proper error X-Git-Tag: v3.0-rc1~350^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6d05cfdf1f2ddbdc367a6433d8eac49d6bfe6f;p=pandora-kernel.git KVM: VMX: Ensure that vmx_create_vcpu always returns proper error In case certain allocations fail, vmx_create_vcpu may return 0 as error instead of a negative value encoded via ERR_PTR. This causes a NULL pointer dereferencing later on in kvm_vm_ioctl_vcpu_create. Reported-by: Sasha Levin Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed