1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dce
Gustavo A. R. Silva f2d51b20d7 drm/amd/display: Fix potential integer overflow
Fix potential integer overflow by casting actual_calculated_clock_100hz
to u64, in order to give the compiler complete information about the
proper arithmetic to use.

Notice that such variable is used in a context that expects
an expression of type u64 (64 bits, unsigned) and the following
expression is currently being evaluated using 32-bit arithmetic:

actual_calculated_clock_100hz * post_divider

Fixes: 7a03fdf628 ("drm/amd/display: fix 64bit division issue on 32bit OS")
Addresses-Coverity-ID: 1501691 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-02-18 16:43:09 -05:00
..
dce_abm.c drm/amd/display: Move panel_cntl specific register from abm to panel_cntl. 2020-05-05 13:10:46 -04:00
dce_abm.h drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
dce_audio.c drm/amd/display/dc/dce/dce_audio: Make function invoked by reference static 2021-01-11 16:09:13 -05:00
dce_audio.h drm/amd/display: dce_audio: add DCE6 specific macros,functions 2020-07-27 16:46:12 -04:00
dce_aux.c drm/amd/display/dc/dce/dce_aux: Mark 'dce_aux_transfer_raw' as __maybe_unused 2021-01-13 23:53:25 -05:00
dce_aux.h drm/amd/display/dc/dce/dce_aux: Remove duplicate line causing 'field overwritten' issue 2021-01-13 23:53:26 -05:00
dce_clk_mgr.c drm/amd/display: correct asic type check V2 2020-10-27 12:01:16 -04:00
dce_clock_source.c drm/amd/display: Fix potential integer overflow 2021-02-18 16:43:09 -05:00
dce_clock_source.h drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
dce_dmcu.c drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dce_dmcu.h drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dce_hwseq.c drm/amd/display: dce_hwseq: add DCE6 specific macros,functions 2020-07-27 16:46:17 -04:00
dce_hwseq.h drm/amd/display: Add DMCU memory low power support 2020-11-24 12:07:31 -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/dc/dce/dce_i2c_hw: Make functions called by reference static 2021-01-11 16:09:14 -05:00
dce_i2c_hw.h drm/amd/display: Add I2C memory low power support 2020-11-16 12:19:22 -05:00
dce_i2c_sw.c drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static 2021-01-11 16:09:14 -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/display: dce_ipp: add DCE6 specific macros,functions 2020-07-27 16:46:20 -04:00
dce_ipp.h drm/amd/display: dce_ipp: add DCE6 specific macros,functions 2020-07-27 16:46:20 -04:00
dce_link_encoder.c drm/amd/display/dc/dce/dce_link_encoder: Remove unused variable 'value0' 2021-01-13 23:53:25 -05:00
dce_link_encoder.h drm/amd/display: Add get_dig_frontend implementation for DCEx 2020-12-16 13:27:08 -05:00
dce_mem_input.c drm/amd/display: dce_mem_input: add DCE6 specific macros,functions (v2) 2020-07-27 16:46:26 -04:00
dce_mem_input.h drm/amd/display: dce_mem_input: add DCE6 specific macros,functions (v2) 2020-07-27 16:46:26 -04:00
dce_opp.c drm/amd/display/dc/dce/dce_opp: Demote non-compliant kernel-doc headers 2021-01-13 23:53:25 -05:00
dce_opp.h drm/amd/display/dc/dce/dce_opp: Remove duplicate entries causing 'field overwritten' issues 2021-01-13 23:53:26 -05:00
dce_panel_cntl.c drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables 'bl_pwm_cntl' and 'pwm_period_cntl' 2021-01-11 16:09:14 -05:00
dce_panel_cntl.h drm/amd/display: Bug in dce_is_panel_backlight_on() 2020-09-22 12:27:35 -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: Fix HDMI deep color output for DCE 6-11. 2021-01-25 17:49:47 -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: Fix 10/12 bpc setup in DCE output bit depth reduction. 2021-01-25 17:49:41 -05:00
dce_transform.h drm/amd/display: dce_transform: DCE6 Scaling Horizontal Filter Init (v2) 2020-07-27 16:46:34 -04:00
dmub_abm.c drm/amd/display: Initialize dmub_rb_cmd unions to 0 2021-02-09 15:48:11 -05:00
dmub_abm.h drm/amd/display: Add ABM driver implementation 2020-04-01 14:44:44 -04:00
dmub_hw_lock_mgr.c drm/amd/display: Initialize dmub_rb_cmd unions to 0 2021-02-09 15:48:11 -05:00
dmub_hw_lock_mgr.h drm/amd/display: Use dmub fw to lock pipe, cursor, dig 2020-07-01 01:59:24 -04:00
dmub_psr.c drm/amd/display: Initialize dmub_rb_cmd unions to 0 2021-02-09 15:48:11 -05:00
dmub_psr.h drm/amd/display: Hook up PSR residency command to DSAT 2020-11-16 12:18:38 -05:00
Makefile drm/amd/display: Use dmub fw to lock pipe, cursor, dig 2020-07-01 01:59:24 -04:00