1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd
Christian König a5492fe27f drm/amdgpu: fix amdgpu_cs_p1_user_fence
The offset is just 32bits here so this can potentially overflow if
somebody specifies a large value. Instead reduce the size to calculate
the last possible offset.

The error handling path incorrectly drops the reference to the user
fence BO resulting in potential reference count underflow.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-08-31 16:39:28 -04:00
..
acp
amdgpu drm/amdgpu: fix amdgpu_cs_p1_user_fence 2023-08-31 16:39:28 -04:00
amdkfd drm/amdkfd: Replace pr_err with dev_err 2023-08-30 15:51:17 -04:00
amdxcp drm/amdxcp: fix Makefile to build amdxcp module 2023-06-09 12:32:53 -04:00
display Revert "Revert "drm/amd/display: Implement zpos property"" 2023-08-30 15:51:17 -04:00
include drm/amdgpu: add UMSCH IP BLOCK TYPE definition 2023-08-31 16:35:23 -04:00
pm drm/amd/pm: introduce a new set of OD interfaces 2023-08-31 16:35:26 -04:00