diff options
author | Sean Christopherson <seanjc@google.com> | 2021-05-06 10:58:26 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-15 10:19:43 -0400 |
commit | c7a1b2b678c54ac19320daf525038d0e2e43ca7c (patch) | |
tree | 9c43fa51d68fa6e5f7c4cdaeb8b909817067f814 /scripts/gdb/linux/utils.py | |
parent | b4a693924aab93f3747465b2261add46c82c3220 (diff) |
KVM: SVM: Fix sev_pin_memory() error checks in SEV migration utilities
Use IS_ERR() instead of checking for a NULL pointer when querying for
sev_pin_memory() failures. sev_pin_memory() always returns an error code
cast to a pointer, or a valid pointer; it never returns NULL.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Steve Rutherford <srutherford@google.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Ashish Kalra <ashish.kalra@amd.com>
Fixes: d3d1af85e2c7 ("KVM: SVM: Add KVM_SEND_UPDATE_DATA command")
Fixes: 15fb7de1a7f5 ("KVM: SVM: Add KVM_SEV_RECEIVE_UPDATE_DATA command")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210506175826.2166383-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions