summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-07-14 16:23:51 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-02 11:23:06 +0200
commitff2bd9ff115218c144441e1df0370d9083b82866 (patch)
tree29bbf2f6ba502e491e80ca23f18f86bce982e71a /arch/s390/include/asm/kvm_host.h
parentKVM: LAPIC: Set the TDCR settable bits (diff)
downloadlinux-ff2bd9ff115218c144441e1df0370d9083b82866.tar.xz
linux-ff2bd9ff115218c144441e1df0370d9083b82866.zip
KVM: SVM: Fix sev_pin_memory() error handling
The sev_pin_memory() function was modified to return error pointers instead of NULL but there are two problems. The first problem is that if "npages" is zero then it still returns NULL. Secondly, several of the callers were not updated to check for error pointers instead of NULL. Either one of these issues will lead to an Oops. Fixes: a8d908b5873c ("KVM: x86: report sev_pin_memory errors with PTR_ERR") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Message-Id: <20200714142351.GA315374@mwanda> Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/s390/include/asm/kvm_host.h')
0 files changed, 0 insertions, 0 deletions