1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd
Dan Carpenter 434cbcb1bd drm/amdgpu: return -EFAULT if copy_to_user() fails
The copy_to_user() function returns the number of bytes remaining to be
copied, but we want to return a negative error code to the user.

Fixes: 030d5b97a5 ("drm/amdgpu: use amdgpu_device_vram_access in amdgpu_ttm_vram_read")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-02-12 16:04:41 -05:00
..
acp drm/amdgpu: fix license on Kconfig and Makefiles 2019-12-11 15:22:08 -05:00
amdgpu drm/amdgpu: return -EFAULT if copy_to_user() fails 2020-02-12 16:04:41 -05:00
amdkfd drm/amdkfd: refactor runtime pm for baco 2020-02-12 16:00:54 -05:00
display drm/amdgpu/display move get_num_odm_splits() into dc_resource.c 2020-02-12 16:04:39 -05:00
include drm/amdgpu: Enable DISABLE_BARRIER_WAITCNT for Arcturus 2020-01-30 17:15:27 -05:00
powerplay drm/powerplay: Ratelimit PP_ASSERT warnings 2020-02-12 16:04:31 -05:00