Alex Hung 21fc0ff38f 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>
2023-04-18 16:28:53 -04:00
..
2023-04-06 01:30:12 +03:00
2023-01-24 17:36:29 +01:00
2023-03-14 17:07:48 +01:00
2023-03-29 16:00:23 +02:00
2023-02-22 18:28:03 -08:00
2023-03-14 17:07:48 +01:00
2023-03-14 17:07:48 +01:00
2023-04-06 15:02:17 +02:00
2023-03-29 16:00:23 +02:00
2023-02-22 18:28:03 -08:00
2023-03-22 10:24:47 +01:00
2023-03-29 16:00:23 +02:00
2023-03-29 16:00:23 +02:00
2023-02-20 14:56:52 +01:00
2022-12-16 03:54:54 -08:00