Skip to content
Commit 054409ab authored by Chen Zhou's avatar Chen Zhou Committed by Paolo Bonzini
Browse files

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: f4c847a9 ("KVM: SVM: refactor msr permission bitmap allocation")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Message-Id: <20201117025426.167824-1-chenzhou10@huawei.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 854c57f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment