diff options
author | 2025-03-21 13:52:32 +0300 | |
---|---|---|
committer | 2025-03-26 17:41:23 -0400 | |
commit | 7d641c2b83275d3b0424127b2e0d2d0f7dd82aef (patch) | |
tree | 25e01ef3cf1c5320d93932d7166ebf9944846cae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/pm: Prevent division by zero (diff) | |
download | linux-rng-7d641c2b83275d3b0424127b2e0d2d0f7dd82aef.tar.xz linux-rng-7d641c2b83275d3b0424127b2e0d2d0f7dd82aef.zip |
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: b64625a303de ("drm/amd/pm: correct the address of Arcturus fan related registers")
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/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions