linux-stable/drivers/gpu
Yefim Barashkin 8c37e7a200 drm/amd/pm: Prevent divide by zero
[ Upstream commit 0638c98c17 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-21 21:24:29 +02:00
..
drm drm/amd/pm: Prevent divide by zero 2022-07-21 21:24:29 +02:00
host1x gpu: host1x: Fix a memory leak in 'host1x_remove()' 2022-04-08 14:23:36 +02:00
ipu-v3 gpu: ipu-v3: Fix dev_dbg frequency output 2022-04-20 09:34:16 +02:00
trace
vga
Makefile