diff options
author | 2022-02-09 21:09:59 +0300 | |
---|---|---|
committer | 2022-02-11 16:10:06 -0500 | |
commit | 5aa71bd773c390891974b1bcbdb3b12aa17c781d (patch) | |
tree | f7ff1d37e7d806b9a75f822b6be5018be4f12df2 /drivers/gpu/drm/amd/amdgpu | |
parent | drm/amdkfd: CRIU fix a NULL vs IS_ERR() check (diff) | |
download | wireguard-linux-5aa71bd773c390891974b1bcbdb3b12aa17c781d.tar.xz wireguard-linux-5aa71bd773c390891974b1bcbdb3b12aa17c781d.zip |
drm/amdkfd: CRIU return -EFAULT for copy_to_user() failure
If copy_to_user() fails, it returns the number of bytes remaining to
be copied but we want to return a negative error code (-EFAULT) to the
user.
Fixes: 9d5dabfeff3c ("drm/amdkfd: CRIU Save Shared Virtual Memory ranges")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Yat Sin <david.yatsin@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions