]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: fix error return code in svm_create_vcpu()
authorChen Zhou <chenzhou10@huawei.com>
Tue, 17 Nov 2020 02:54:26 +0000 (10:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Nov 2020 07:40:08 +0000 (02:40 -0500)
commitefc29544b9fa3e63bee606632667c1cd9d695d09
tree8316c9e642fb1d29eabb14c1d486527ec4a0e40a
parentba6da10e7d7dd4a94d5b8da1ac5486594c952335
KVM: SVM: fix error return code in svm_create_vcpu()

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

Fixes: a79990311cbd ("KVM: SVM: refactor msr permission bitmap allocation")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Message-Id: <20201117025426.167824-1-chenzhou10@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c