]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36d5d5545cad333abb8f89c96e15ed11bce9776a
tree9e45d3570f332ac3c2e09490b86223877e7fba9a
parent3541635942d9198ec85fad52b69447578477028a
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