linux/drivers/gpu/drm/amd/display/dc/link/protocols
Alex Hung bbd0d1c942 drm/amd/display: Fix possible overflow in integer multiplication
[WHAT & HOW]
Integer multiplies integer may overflow in context that expects an
expression of unsigned/siged long long (64 bits). This can be fixed
by casting integer to unsigned/siged long long to force 64 bits results.

This fixes 26 OVERFLOW_BEFORE_WIDEN issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-07-01 16:06:53 -04:00
..
link_ddc.c drm/amd/display: remove unused struct 'aux_payloads' 2024-05-20 16:20:26 -04:00
link_ddc.h
link_dp_capability.c drm/amd/display: Fix reduced resolution and refresh rate 2024-06-27 17:10:37 -04:00
link_dp_capability.h
link_dp_dpia.c drm/amd/display: Dpia hpd status not in sync after S4 2024-01-09 15:43:54 -05:00
link_dp_dpia.h
link_dp_dpia_bw.c drm/amd/display: Allocate zero bw after bw alloc enable 2024-04-30 09:47:04 -04:00
link_dp_dpia_bw.h drm/amd/display: Request usb4 bw for mst streams 2024-01-09 15:43:54 -05:00
link_dp_irq_handler.c Revert "drm/amd/display: Handle HPD_IRQ for internal link" 2024-06-14 16:17:17 -04:00
link_dp_irq_handler.h
link_dp_phy.c drm/amd/display: Fix FEC_READY write on DP LT 2024-04-30 09:56:57 -04:00
link_dp_phy.h
link_dp_training.c drm/amd/display: Validate function returns 2024-06-27 17:10:38 -04:00
link_dp_training.h drm/amd/display: avoid stringop-overflow warnings for dp_decide_lane_settings() 2024-01-05 16:10:44 -05:00
link_dp_training_8b_10b.c
link_dp_training_8b_10b.h
link_dp_training_128b_132b.c
link_dp_training_128b_132b.h
link_dp_training_auxless.c
link_dp_training_auxless.h
link_dp_training_dpia.c drm/amd/display: Not fallback if link BW is smaller than req BW 2024-05-20 16:20:25 -04:00
link_dp_training_dpia.h
link_dp_training_fixed_vs_pe_retimer.c drm/amd/display: Don't perform rate toggle on DP2-capable FIXED_VS retimers 2024-02-07 12:26:21 -05:00
link_dp_training_fixed_vs_pe_retimer.h drm/amd/display: Remove Legacy FIXED_VS Transparent LT Sequence 2024-02-07 12:25:51 -05:00
link_dpcd.c drm/amd/display: Add missing NULL pointer check within dpcd_extend_address_range 2024-05-02 16:18:17 -04:00
link_dpcd.h
link_edp_panel_control.c drm/amd/display: Fix possible overflow in integer multiplication 2024-07-01 16:06:53 -04:00
link_edp_panel_control.h drm/amd/display: Extend PSRSU residency mode 2024-06-14 15:20:40 -04:00
link_hpd.c drm/amd/display: Fix uninitialized variables in DC 2024-04-26 17:22:44 -04:00
link_hpd.h