diff options
author | 2023-04-03 17:45:41 +0800 | |
---|---|---|
committer | 2023-04-18 16:28:53 -0400 | |
commit | 21fc0ff38f571debdba6aaff944addb50f49a7f7 (patch) | |
tree | eefbd1b1965e41ac43135dde27a08d89d0346a8b /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | drm/amd/display: [FW Promotion] Release 0.0.162.0 (diff) | |
download | linux-rng-21fc0ff38f571debdba6aaff944addb50f49a7f7.tar.xz linux-rng-21fc0ff38f571debdba6aaff944addb50f49a7f7.zip |
drm/amd/display: fix a divided-by-zero error
[Why & How]
timing.dsc_cfg.num_slices_v can be zero and it is necessary to check
before using it.
This fixes the error "divide error: 0000 [#1] PREEMPT SMP NOPTI".
Reviewed-by: Aurabindo Pillai <Aurabindo.Pillai@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
0 files changed, 0 insertions, 0 deletions