linux/drivers/gpu/drm/amd/pm
Denis Arefev 4b8c3c0d17 drm/amd/pm: 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: c52dcf4919 ("drm/amd/pp: Avoid divide-by-zero in fan_ctrl_set_fan_speed_rpm")
Signed-off-by: Denis Arefev <arefev@swemel.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2025-03-26 17:41:37 -04:00
..
inc drm/amd/pm: Add debug bit for smu pool allocation 2025-03-19 15:56:13 -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:37 -04:00
swsmu drm/amd/pm: Prevent division by zero 2025-03-26 17:41:23 -04:00
amdgpu_dpm_internal.c
amdgpu_dpm.c drm/amdgpu: Check if CPER enabled when generating CPER 2025-02-25 11:45:12 -05:00
amdgpu_pm.c drm/amdgpu: Add amdgpu_sriov_multi_vf_mode function 2025-03-13 23:12:52 -04:00
Makefile drm/amd/swsmu: add smu14 ip support 2023-10-13 10:59:55 -04:00