diff options
| author | Ashley Thomas <Ashley.Thomas2@amd.com> | 2020-10-12 21:33:27 -0700 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-02 15:30:47 -0500 |
| commit | 7dd4f4df99109b280cd996602d7533cc0b2e7348 (patch) | |
| tree | 1fe522fdc441e2f4e86faec6414d796b10e7c00b /tools/perf/scripts/python/bin | |
| parent | drm/amd/display: 3.2.109 (diff) | |
| download | linux-7dd4f4df99109b280cd996602d7533cc0b2e7348.tar.gz linux-7dd4f4df99109b280cd996602d7533cc0b2e7348.zip | |
drm/amd/display: fail instead of div by zero/bugcheck
[why]
If pbn_per_slot is 0, fail instead of dividing by zero and
bugchecking.
[how]
Check for zero divisor before division operation.
Signed-off-by: Ashley Thomas <Ashley.Thomas2@amd.com>
Reviewed-by: Wyatt Wood <Wyatt.Wood@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
