summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdxcp
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2023-08-25 15:28:00 +0200
committerAlex Deucher <alexander.deucher@amd.com>2023-08-31 16:39:28 -0400
commita5492fe27ff9684d901b2829584ea186fbecd71e (patch)
tree40e516dc835203ce7ead2105627e4177caee516a /drivers/gpu/drm/amd/amdxcp
parent90bcb9b595549d75fca573a22f06b05ee15117fa (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdxcp')
0 files changed, 0 insertions, 0 deletions