diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-01-31 07:57:39 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-03-13 18:52:35 +0300 |
commit | 9543a9c3e2359db4b9576ee2ae3bae5a28e08387 (patch) | |
tree | 04b4d01fa15a3339bec2a81b4e41fcf5603dc02f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 95f247e73f8dd4d3f586b410d07df791ca3b2fef (diff) | |
download | linux-9543a9c3e2359db4b9576ee2ae3bae5a28e08387.tar.xz |
drm/amd/display: Possible divide by zero in set_speed()
If "speed" is zero then we use it as a divisor to find "prescale". It's
better to move the check for zero to the very start of the function.
Fixes: 9eeec26a1339 ("drm/amd/display: Refine i2c frequency calculating sequence")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions