diff options
| author | Denis Arefev <[email protected]> | 2025-03-21 10:52:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-03-26 21:41:31 +0000 |
| commit | 4e3d9508c056d7e0a56b58d5c81253e2a0d22b6c (patch) | |
| tree | 1e0c4212b2c6d0ce95784411dc51b1975765978a /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amd/pm: Prevent division by zero (diff) | |
| download | kernel-4e3d9508c056d7e0a56b58d5c81253e2a0d22b6c.tar.gz kernel-4e3d9508c056d7e0a56b58d5c81253e2a0d22b6c.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: 031db09017da ("drm/amd/powerplay/vega20: enable fan RPM and pwm settings V2")
Signed-off-by: Denis Arefev <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
