diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-07-03 12:46:20 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-07-08 17:47:28 -0400 |
commit | 64598e23de7873b9d47cd9b9a02daa2bb4ded343 (patch) | |
tree | af0cd220498c8145cfb44a1af2898b41aa065ba2 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | b8badd507a5b76a8e58c864b01116f3de43464cb (diff) | |
download | linux-64598e23de7873b9d47cd9b9a02daa2bb4ded343.tar.gz linux-64598e23de7873b9d47cd9b9a02daa2bb4ded343.tar.bz2 linux-64598e23de7873b9d47cd9b9a02daa2bb4ded343.zip |
drm/amdgpu: return -EFAULT if copy_to_user() fails
If copy_to_user() fails then this should return -EFAULT instead of
-EINVAL.
Fixes: c65b0805e77919 ("drm/amdgpu: RAS EEPROM table is now in debugfs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions