diff options
| author | David Galiffi <[email protected]> | 2022-05-03 18:30:25 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-05-26 14:56:30 -0400 |
| commit | 49947b906a6bd9668eaf4f9cf691973c25c26955 (patch) | |
| tree | dc384cadea60b725a592594b8477e04a68ef43c3 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 3f69ee66f507a9e1180fd3a67b43807fae9b0e37 (diff) | |
drm/amd/display: Check if modulo is 0 before dividing.
[How & Why]
If a value of 0 is read, then this will cause a divide-by-0 panic.
Reviewed-by: Martin Leung <[email protected]>
Acked-by: Qingqing Zhuo <[email protected]>
Signed-off-by: David Galiffi <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions