linux/drivers/gpu/drm/amd
Dan Carpenter b8badd507a 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: c65b0805e7 ("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>
2021-07-08 17:47:16 -04:00
..
acp
amdgpu drm/amdgpu: unlock on error in amdgpu_ras_debugfs_table_read() 2021-07-08 17:47:16 -04:00
amdkfd drm/amdkfd: Maintain svm_bo reference in page->zone_device_data 2021-07-01 00:05:41 -04:00
display drm/amd/display: increase max EDID size to 2k 2021-07-08 15:16:52 -04:00
include drm/amd/display: DMUB Outbound Interrupt Process-X86 2021-07-08 15:14:36 -04:00
pm drm/amdgpu: The I2C IP doesn't support 0 writes/reads 2021-07-08 15:12:51 -04:00