Skip to content
Snippets Groups Projects
Commit d3c1c2c0 authored by Yefim Barashkin's avatar Yefim Barashkin Committed by Alex Deucher
Browse files

drm/amd/pm: Prevent divide by zero


divide error: 0000 [#1] SMP PTI
CPU: 3 PID: 78925 Comm: tee Not tainted 5.15.50-1-lts #1
Hardware name: MSI MS-7A59/Z270 SLI PLUS (MS-7A59), BIOS 1.90 01/30/2018
RIP: 0010:smu_v11_0_set_fan_speed_rpm+0x11/0x110 [amdgpu]

Speed is user-configurable through a file.
I accidentally set it to zero, and the driver crashed.

Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarAndré Almeida <andrealmeid@igalia.com>
Signed-off-by: default avatarYefim Barashkin <mr.b34r@kolabnow.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1da6d243
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment