summaryrefslogtreecommitdiff
path: root/drivers/mfd/ab8500-core.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-01-09 15:56:20 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-27 20:00:00 +0100
commitdc9ce71e66b84497c375c529d818d8e8d0d793a9 (patch)
tree6721fb240edc28c3a5539fc824aacf24971de9b9 /drivers/mfd/ab8500-core.c
parent6ad1e29fe0aba843dfffc714fced0ef6a2e19502 (diff)
KVM: Return immediately if __kvm_gfn_to_hva_cache_init() fails
Check the result of __kvm_gfn_to_hva_cache_init() and return immediately instead of relying on the kvm_is_error_hva() check to detect errors so that it's abundantly clear KVM intends to immediately bail on an error. Note, the hva check is still mandatory to handle errors on subqeuesnt calls with the same generation. Similarly, always return -EFAULT on error so that multiple (bad) calls for a given generation will get the same result, e.g. on an illegal gfn wrap, propagating the return from __kvm_gfn_to_hva_cache_init() would cause the initial call to return -EINVAL and subsequent calls to return -EFAULT. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/mfd/ab8500-core.c')
0 files changed, 0 insertions, 0 deletions