aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-01-31 04:57:39 +0000
committerAlex Deucher <[email protected]>2020-03-13 15:52:35 +0000
commit9543a9c3e2359db4b9576ee2ae3bae5a28e08387 (patch)
tree04b4d01fa15a3339bec2a81b4e41fcf5603dc02f /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentdrm/amdgpu/display: clean up some indenting (diff)
downloadkernel-9543a9c3e2359db4b9576ee2ae3bae5a28e08387.tar.gz
kernel-9543a9c3e2359db4b9576ee2ae3bae5a28e08387.zip
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions