linux/drivers/gpu/drm/amd/pm
Denis Arefev 7ba88b5ccc drm/amd/pm/smu11: Prevent division by zero
The user can set any speed value.
If speed is greater than UINT_MAX/8, division by zero is possible.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 1e866f1fe5 ("drm/amd/pm: Prevent divide by zero")
Signed-off-by: Denis Arefev <arefev@swemel.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit da7dc714a8)
Cc: stable@vger.kernel.org
2025-04-09 10:53:11 -04:00
..
inc drm/amdgpu/pm: add workload profile pause helper 2025-04-09 10:53:11 -04:00
legacy-dpm amdgpu/pm/legacy: fix suspend/resume issues 2025-02-25 11:43:58 -05:00
powerplay drm/amd/pm: Prevent division by zero 2025-03-26 17:41:43 -04:00
swsmu drm/amd/pm/smu11: Prevent division by zero 2025-04-09 10:53:11 -04:00
Makefile
amdgpu_dpm.c drm/amdgpu/pm: add workload profile pause helper 2025-04-09 10:53:11 -04:00
amdgpu_dpm_internal.c
amdgpu_pm.c drm/amdgpu: Add amdgpu_sriov_multi_vf_mode function 2025-03-13 23:12:52 -04:00