diff options
| author | Alex Hung <alex.hung@amd.com> | 2023-04-03 12:45:41 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-04-18 23:28:53 +0300 |
| commit | 21fc0ff38f571debdba6aaff944addb50f49a7f7 (patch) | |
| tree | eefbd1b1965e41ac43135dde27a08d89d0346a8b /scripts/patch-kernel | |
| parent | 276641775848020c6e84166d1bc885e028a04680 (diff) | |
| download | linux-21fc0ff38f571debdba6aaff944addb50f49a7f7.tar.xz | |
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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
