KVM: x86: fix error return code in kvm_arch_vcpu_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 17 Apr 2013 23:41:00 +0000 (07:41 +0800)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 07:56:44 +0000 (10:56 +0300)
commitf1797359216c1daa145a354d07b8b2b7459668f4
tree9e45d3570f332ac3c2e09490b86223877e7fba9a
parent8a1b9dd0006bce5cc770fd80bc95f9916670c151
KVM: x86: fix error return code in kvm_arch_vcpu_init()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/x86.c