diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-23 05:12:24 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-08 16:21:42 -0400 |
commit | a8d908b5873cad212b0f74569f5a23b804e694ce (patch) | |
tree | 6cfe52868ea5b2408e5a6e8b6c386828c4d1e33c /arch/x86/kvm/svm/svm.c | |
parent | dc42c8ae0a7762378102dd043779d19331804cce (diff) | |
download | lwn-a8d908b5873cad212b0f74569f5a23b804e694ce.tar.gz lwn-a8d908b5873cad212b0f74569f5a23b804e694ce.zip |
KVM: x86: report sev_pin_memory errors with PTR_ERR
Callers of sev_pin_memory() treat
NULL differently:
sev_launch_secret()/svm_register_enc_region() return -ENOMEM
sev_dbg_crypt() returns -EFAULT.
Switching to ERR_PTR() preserves the error and enables cleaner reporting of
different kinds of failures.
Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
0 files changed, 0 insertions, 0 deletions