diff options
author | Yefim Barashkin <mr.b34r@kolabnow.com> | 2022-07-11 14:35:11 -0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-13 11:25:18 -0400 |
commit | 1e866f1fe528bc0158cdcd589053753032bdb52c (patch) | |
tree | 82997a5b91680d752502ed881be31cbc646c760f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | cb50813998b5aed924323b1b46471e8c60b26692 (diff) | |
download | linux-1e866f1fe528bc0158cdcd589053753032bdb52c.tar.gz linux-1e866f1fe528bc0158cdcd589053753032bdb52c.tar.bz2 linux-1e866f1fe528bc0158cdcd589053753032bdb52c.zip |
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: Evan Quan <evan.quan@amd.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Yefim Barashkin <mr.b34r@kolabnow.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions