diff options
author | Alex Hung <[email protected]> | 2023-04-03 17:45:41 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-04-18 17:20:00 -0400 |
commit | 0b5dfe12755f87ec014bb4cc1930485026167430 (patch) | |
tree | 1e46fec3690d3537d811647d2b809384186515f8 /scripts/gdb/linux/dmesg.py | |
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 <[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]>
Cc: [email protected]
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions