linux/drivers/gpu/drm/amd/display/dc/basics
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
..
Makefile drm/amd/display: Move bw_fixed from DML folder 2023-10-09 16:48:37 -04:00
bw_fixed.c drm/amd/display: Move bw_fixed from DML folder 2023-10-09 16:48:37 -04:00
calcs_logger.h drm/amd/display: Move dce_calcs from DML folder 2023-10-09 16:48:22 -04:00
conversion.c drm/amd/display: Add dpp_get_gamut_remap functions 2024-01-22 17:13:26 -05:00
conversion.h drm/amd/display: Add dpp_get_gamut_remap functions 2024-01-22 17:13:26 -05:00
custom_float.c drm/amd/display: Move custom_float from DML folder 2023-10-09 16:48:31 -04:00
dc_common.c
dc_common.h
dce_calcs.c drm/amd/display: Fix possible overflow in integer multiplication 2024-07-01 16:06:53 -04:00
fixpt31_32.c drm/amd/display: Remove reduntant comparisons by Coverity 2024-06-14 16:18:25 -04:00
logger.h
vector.c drm/amd/display: Add missing static 2023-07-18 11:13:30 -04:00