Files
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit da7dc714a8)
Cc: [email protected]
2025-04-09 10:53:11 -04:00
..
2023-10-13 10:59:55 -04:00