aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorDenis Arefev <[email protected]>2025-03-21 11:08:16 +0000
committerAlex Deucher <[email protected]>2025-03-26 21:41:43 +0000
commit7c246a05df51c52fe0852ce56ba10c41e6ed1f39 (patch)
tree5a413cc5b032134d53bec0470dcb150071b7ef5e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amd/pm: Prevent division by zero (diff)
downloadkernel-7c246a05df51c52fe0852ce56ba10c41e6ed1f39.tar.gz
kernel-7c246a05df51c52fe0852ce56ba10c41e6ed1f39.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: c52dcf49195d ("drm/amd/pp: Avoid divide-by-zero in fan_ctrl_set_fan_speed_rpm") 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