aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
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/display/dc/dce/dce_clk_mgr.c
parentdrm/amdgpu: revise the device initialization sequences (diff)
downloadlinux-a5492fe27ff9684d901b2829584ea186fbecd71e.tar.gz
linux-a5492fe27ff9684d901b2829584ea186fbecd71e.zip
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/display/dc/dce/dce_clk_mgr.c')
0 files changed, 0 insertions, 0 deletions
td>Junio C Hamano4-117/+0 2024-05-21Revert "Add a helper function to compare file contents"Johannes Schindelin4-123/+0 2024-05-21clone: drop the protections where hooks aren't runJohannes Schindelin3-96/+1 2024-05-21tests: verify that `clone -c core.hooksPath=/dev/null` works againJohannes Schindelin1-0/+7 2024-05-21Revert "core.hooksPath: add some protection while cloning"Johannes Schindelin2-27/+1 2024-05-21init: use the correct path of the templates directory againJohannes Schindelin1-1/+1 2024-05-21hook: plug a new memory leakJohannes Schindelin1-1/+3 2024-05-21ci: stop installing "gcc-13" for osx-gccJeff King1-1/+0 2024-05-21ci: avoid bare "gcc" for osx-gcc jobJeff King1-1/+1 2024-05-21ci: drop mention of BREW_INSTALL_PACKAGES variableJeff King1-2/+0 2024-05-21send-email: avoid creating more than one Term::ReadLine objectJeff King2-7/+16 2024-05-21send-email: drop FakeTerm hackJeff King1-20/+2 2024-04-19Git 2.44.1v2.44.1Johannes Schindelin3-2/+10 2024-04-19Git 2.43.4v2.43.4Johannes Schindelin3-2/+9 2024-04-19Git 2.42.2v2.42.2Johannes Schindelin3-2/+9 2024-04-19Git 2.41.1v2.41.1Johannes Schindelin3-2/+9 2024-04-19Git 2.40.2v2.40.2Johannes Schindelin3-2/+9 2024-04-19Git 2.39.4v2.39.4Johannes Schindelin3-2/+81 2024-04-19fsck: warn about symlink pointing inside a gitdirJohannes Schindelin4-0/+117 2024-04-19core.hooksPath: add some protection while cloningJohannes Schindelin2-1/+27 2024-04-19init.templateDir: consider this config setting protectedJohannes Schindelin2-7/+61 2024-04-19clone: prevent hooks from running during a cloneJohannes Schindelin3-1/+94 2024-04-19Add a helper function to compare file contentsJohannes Schindelin4-0/+123 2024-04-17init: refactor the template directory discovery into its own functionJohannes Schindelin3-18/+37 2024-04-17find_hook(): refactor the `STRIP_EXTENSION` logicJohannes Schindelin1-7/+11 2024-04-17clone: when symbolic links collide with directories, keep the latterJohannes Schindelin3-2/+31 2024-04-17entry: report more colliding pathsJohannes Schindelin3-1/+20 2024-04-17t5510: verify that D/F confusion cannot lead to an RCEJohannes Schindelin1-0/+24 2024-04-17submodule: require the submodule path to contain directories onlyJohannes Schindelin4-5/+113 2024-04-17clone_submodule: avoid using `access()` on directoriesJohannes Schindelin1-1/+1 2024-04-17submodules: submodule paths must not contain symlinksJohannes Schindelin2-0/+83 2024-04-17clone: prevent clashing git dirs when cloning submodule in parallelFilip Hejsek3-2/+66