diff options
| author | Dan Carpenter <[email protected]> | 2020-01-31 04:57:39 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-03-13 15:52:35 +0000 |
| commit | 9543a9c3e2359db4b9576ee2ae3bae5a28e08387 (patch) | |
| tree | 04b4d01fa15a3339bec2a81b4e41fcf5603dc02f /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amdgpu/display: clean up some indenting (diff) | |
| download | kernel-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
