diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-07-03 12:45:39 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-07-08 17:47:16 -0400 |
commit | b8badd507a5b76a8e58c864b01116f3de43464cb (patch) | |
tree | 09fcd20b0c976851c0d77d2c61f1e950bfdabfef /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 1d864f1088bbcf7f6ffa83053dcc8684a1a436cb (diff) | |
download | linux-b8badd507a5b76a8e58c864b01116f3de43464cb.tar.gz linux-b8badd507a5b76a8e58c864b01116f3de43464cb.tar.bz2 linux-b8badd507a5b76a8e58c864b01116f3de43464cb.zip |
drm/amdgpu: unlock on error in amdgpu_ras_debugfs_table_read()
This error path needs to unlock before returning. While we're at it,
the correct error code from copy_to_user() failure is -EFAULT, not
-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