diff options
author | Alex Hung <alex.hung@amd.com> | 2023-04-03 17:45:41 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-04-18 17:20:00 -0400 |
commit | 0b5dfe12755f87ec014bb4cc1930485026167430 (patch) | |
tree | 1e46fec3690d3537d811647d2b809384186515f8 /drivers/fpga/fpga-bridge.c | |
parent | 1e994cc0956b8dabd1b1fef315bbd722733b8aa8 (diff) |
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions