diff options
author | Christian König <[email protected]> | 2023-08-25 15:28:00 +0200 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-08-31 18:14:49 -0400 |
commit | 35588314e963938dfdcdb792c9170108399377d6 (patch) | |
tree | 218f6be9a063734bde199072ba3ba41e2feb6229 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c | |
parent | 46528db35561e45ff0a5e9c80d6e6e69a5877150 (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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions