linux/drivers/gpu/drm/amd/display/modules
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
..
color drm/amd/display: Fix compiler warnings on high compiler warning levels 2024-04-09 22:05:04 -04:00
freesync drm/amd/display: Fix possible overflow in integer multiplication 2024-07-01 16:06:53 -04:00
hdcp drm/amd/display: Use ARRAY_SIZE for array length 2024-06-27 17:10:39 -04:00
inc drm/amd/display: revert Exit idle optimizations before HDCP execution 2024-03-20 13:36:29 -04:00
info_packet Revert "drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR" 2024-03-22 15:52:12 -04:00
power drm/amd/display: Introduce deferred Replay coasting vtotal update 2024-06-14 15:34:02 -04:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00