summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-06-07 22:09:53 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-07-27 17:31:41 -0400
commit3f96f545f877ac59d0c967f52d760b4b2b3b9a47 (patch)
tree5bc8191c962fd318ef747ef9bbe0f6355ca3f822 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
parentd5022deb4a526009fdc20e4d62528b25b05112dc (diff)
drm/amd/display: Fix possible overflow in integer multiplication
[WHAT & HOW] Integer multiplies integer may overflow in context that expects an expression of unsigned long long (64 bits). This can be fixed by casting integer to unsigned long long to force 64 bits results. This fixes 2 OVERFLOW_BEFORE_WIDEN issues reported by Coverity. Signed-off-by: Alex Hung <alex.hung@amd.com> Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h')
0 files changed, 0 insertions, 0 deletions