mirror-linux/drivers/gpu/drm/amd/display/modules
Alex Hung e43cf7abec drm/amd/display: fix a divided-by-zero error
[ Upstream commit 0b5dfe1275 ]

[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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:03 +09:00
..
color drm/amd/display: fix transfer function passed to build_coefficients() 2022-10-11 11:33:31 -04:00
freesync drm/amd/display: Fix HDMI VSIF V3 incorrect issue 2022-08-10 15:12:13 -04:00
hdcp drm/amd/display: update topology_update_input_v3 struct 2022-06-14 21:38:40 -04:00
inc drm/amd/display: Add vrr_active_variable to dc_stream_update 2022-06-14 21:38:41 -04:00
info_packet drm/amd/display: revise Start/End SDP data 2022-06-06 14:40:57 -04:00
power drm/amd/display: fix a divided-by-zero error 2023-05-11 23:03:03 +09:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00