diff options
| author | 2020-02-12 15:07:59 +0300 | |
|---|---|---|
| committer | 2020-02-12 16:04:41 -0500 | |
| commit | 434cbcb1bd5dea181e6e2379f9f4d4949b51d445 (patch) | |
| tree | 6fe9206773f3b665865e2c534cd93708a961d6eb /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amdgpu/gfx10: disable gfxoff when reading rlc clock (diff) | |
| download | linux-dev-434cbcb1bd5dea181e6e2379f9f4d4949b51d445.tar.xz linux-dev-434cbcb1bd5dea181e6e2379f9f4d4949b51d445.zip | |
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: 030d5b97a54b ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
