diff options
author | Denis Arefev <arefev@swemel.ru> | 2025-03-21 14:08:16 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-03-27 00:41:43 +0300 |
commit | 7c246a05df51c52fe0852ce56ba10c41e6ed1f39 (patch) | |
tree | 5a413cc5b032134d53bec0470dcb150071b7ef5e /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 4b8c3c0d17c07f301011e2908fecd2ebdcfe3d1c (diff) | |
download | linux-7c246a05df51c52fe0852ce56ba10c41e6ed1f39.tar.xz |
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: c52dcf49195d ("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
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions