diff options
author | Dan Carpenter <[email protected]> | 2024-06-12 14:50:39 +0300 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2024-08-13 06:08:40 -0400 |
commit | cd2d00606553e631e9b5d11cca7da38fc95433e6 (patch) | |
tree | 06975ba1614050cbf21f0b168f1b934405de47b6 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 696eb24ac2af632ddcb422114b2d8498af1de20c (diff) |
KVM: SVM: Fix an error code in sev_gmem_post_populate()
The copy_from_user() function returns the number of bytes which it
was not able to copy. Return -EFAULT instead.
Fixes: dee5a47cc7a4 ("KVM: SEV: Add KVM_SEV_SNP_LAUNCH_UPDATE command")
Signed-off-by: Dan Carpenter <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions