Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
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
..
2019-09-16 09:59:21 -05:00
2020-01-16 13:35:10 -05:00
2020-01-16 13:35:10 -05:00
2019-11-19 10:12:50 -05:00
2019-06-20 11:36:22 -05:00
2017-10-20 13:28:44 -04:00
2019-01-14 10:58:37 +01:00
2019-06-10 23:00:01 +02:00
2019-06-20 21:16:38 -05:00
2016-08-31 15:21:09 -04:00
2020-02-12 16:04:40 -05:00
2020-02-11 11:49:23 -05:00