1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dce
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
..
dce_abm.c drm/amdgpu: Add DC feature mask to disable fractional pwm 2019-10-25 16:50:10 -04:00
dce_abm.h drm/amd/display: Drop CONFIG_DRM_AMD_DC_DCN2_0 and DSC_SUPPORTED 2019-11-13 15:29:44 -05:00
dce_audio.c drm/amd/display: support spdif 2019-08-23 11:42:05 -05:00
dce_audio.h drm/amd/display: Fix a typo - dce_aduio_mask --> dce_audio_mask 2019-08-12 12:47:49 -05:00
dce_aux.c AMD DISPLAY CORE: Use fallthrough; 2020-03-13 11:52:34 -04:00
dce_aux.h drm/amd/display: Drop CONFIG_DRM_AMD_DC_DCN2_0 and DSC_SUPPORTED 2019-11-13 15:29:44 -05:00
dce_clk_mgr.c drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
dce_clock_source.c drm/amd/display: rename DCN1_0 kconfig to DCN 2019-11-13 15:29:44 -05:00
dce_clock_source.h drm/amd/display: rename DCN1_0 kconfig to DCN 2019-11-13 15:29:44 -05:00
dce_dmcu.c drm/amd/display: Update TX masks correctly 2020-02-25 11:02:41 -05:00
dce_dmcu.h drm/amd/display: Drop CONFIG_DRM_AMD_DC_DCN2_1 flag 2019-11-13 15:29:44 -05:00
dce_hwseq.c drm/amd/display: add separate of private hwss functions 2019-12-05 16:26:46 -05:00
dce_hwseq.h drm/amd/display: add separate of private hwss functions 2019-12-05 16:26:46 -05:00
dce_i2c.c drm/amd/display: add oem i2c implemenation in dc 2019-11-13 15:29:43 -05:00
dce_i2c.h drm/amd/display: Remove redundant i2c structs 2018-08-27 15:20:56 -05:00
dce_i2c_hw.c drm/amd/display: Possible divide by zero in set_speed() 2020-03-13 11:52:35 -04:00
dce_i2c_hw.h drm/amd/display: init hw i2c speed 2020-01-22 16:55:28 -05:00
dce_i2c_sw.c drm/amd/display: add oem i2c implemenation in dc 2019-11-13 15:29:43 -05:00
dce_i2c_sw.h drm/amd/display: add oem i2c implemenation in dc 2019-11-13 15:29:43 -05:00
dce_ipp.c drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
dce_ipp.h drm/amd/display: dce80, 100, 110 and 112 to dce ipp refactor 2017-09-26 18:06:39 -04:00
dce_link_encoder.c drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
dce_link_encoder.h drm/amdgpu/display: add support for LVDS (v5) 2018-08-27 11:11:15 -05:00
dce_mem_input.c AMD DISPLAY CORE: Use fallthrough; 2020-03-13 11:52:34 -04:00
dce_mem_input.h drm/amd/display: Separate mem input constuctors for dce 112 and 120 2018-04-11 13:07:42 -05:00
dce_opp.c drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
dce_opp.h amdgpu/dc: make opp construct void. 2017-09-29 13:01:42 -04:00
dce_scl_filters.c drm/amd/display: update scaling filters 2020-02-25 11:02:33 -05:00
dce_scl_filters_old.c drm/amd/display: update scaling filters 2020-02-25 11:02:33 -05:00
dce_stream_encoder.c drm/amd/display: rename DCN1_0 kconfig to DCN 2019-11-13 15:29:44 -05:00
dce_stream_encoder.h drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
dce_transform.c drm/amd/display: add HDR visual confirm 2018-07-16 16:11:49 -05:00
dce_transform.h drm/amd/display: Add regamma lut write mask to SOC base 2018-03-05 15:34:10 -05:00
dmub_psr.c drm/amd/display: clean up a condition in dmub_psr_copy_settings() 2020-03-13 11:52:35 -04:00
dmub_psr.h drm/amd/display: Add driver support for enabling PSR on DMCUB 2020-02-25 11:09:06 -05:00
Makefile drm/amd/display: Add driver support for enabling PSR on DMCUB 2020-02-25 11:09:06 -05:00