diff options
author | Sean Christopherson <[email protected]> | 2021-05-06 10:58:26 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-07-15 10:19:43 -0400 |
commit | c7a1b2b678c54ac19320daf525038d0e2e43ca7c (patch) | |
tree | 9c43fa51d68fa6e5f7c4cdaeb8b909817067f814 /tools/perf/scripts/python/export-to-postgresql.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 <[email protected]>
Cc: Steve Rutherford <[email protected]>
Cc: Brijesh Singh <[email protected]>
Cc: Ashish Kalra <[email protected]>
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions