diff options
| author | Alex Hung <[email protected]> | 2023-04-03 17:45:41 +0800 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-04-18 16:28:53 -0400 |
| commit | 21fc0ff38f571debdba6aaff944addb50f49a7f7 (patch) | |
| tree | eefbd1b1965e41ac43135dde27a08d89d0346a8b /tools/perf/scripts | |
| parent | 276641775848020c6e84166d1bc885e028a04680 (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 <[email protected]>
Acked-by: Qingqing Zhuo <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions