x86: KVM: svm: Fix a check in nested_svm_vmrun()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Aug 2019 09:38:52 +0000 (12:38 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Sep 2019 15:28:01 +0000 (17:28 +0200)
commita061985b81a20248da60589d01375ebe9bec4dfc
tree2b407e57f50fa079bc695501f355552aebb6e3a5
parent7396d337cfadc7c0b32dfd46581e9daff6666e84
x86: KVM: svm: Fix a check in nested_svm_vmrun()

We refactored this code a bit and accidentally deleted the "-" character
from "-EINVAL".  The kvm_vcpu_map() function never returns positive
EINVAL.

Fixes: c8e16b78c614 ("x86: KVM: svm: eliminate hardcoded RIP advancement from vmrun_interception()")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c