linux/drivers/gpu/drm/amd
Dan Carpenter 9543a9c3e2 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: 9eeec26a13 ("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>
2020-03-13 11:52:35 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu AMD KFD: Use fallthrough; 2020-03-13 11:52:35 -04:00
amdkfd drm/amdkfd: Consolidate duplicated bo alloc flags 2020-03-10 15:54:34 -04:00
display drm/amd/display: Possible divide by zero in set_speed() 2020-03-13 11:52:35 -04:00
include drm/amdkfd: Consolidate duplicated bo alloc flags 2020-03-10 15:54:34 -04:00
powerplay drm/amd/powerplay: Move fallthrough; into containing #ifdef/#endif 2020-03-13 11:52:35 -04:00