diff options
author | 2025-03-20 12:35:02 +0300 | |
---|---|---|
committer | 2025-04-09 10:53:11 -0400 | |
commit | 7ba88b5cccc1a99c1afb96e31e7eedac9907704c (patch) | |
tree | b7568c2816c541e2376ac712e762a35b5d1adabc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | drm/amdgpu: cancel gfx idle work in device suspend for s0ix (diff) | |
download | linux-rng-7ba88b5cccc1a99c1afb96e31e7eedac9907704c.tar.xz linux-rng-7ba88b5cccc1a99c1afb96e31e7eedac9907704c.zip |
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: 1e866f1fe528 ("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 da7dc714a8f8e1c9fc33c57cd63583779a3bef71)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions