diff options
| author | Alex Hung <[email protected]> | 2024-06-08 04:09:53 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-27 21:31:41 +0000 |
| commit | 3f96f545f877ac59d0c967f52d760b4b2b3b9a47 (patch) | |
| tree | 5bc8191c962fd318ef747ef9bbe0f6355ca3f822 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
| parent | drm/amd/display: Add option to disable unbounded req in DML21 (diff) | |
| download | kernel-3f96f545f877ac59d0c967f52d760b4b2b3b9a47.tar.gz kernel-3f96f545f877ac59d0c967f52d760b4b2b3b9a47.zip | |
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 <[email protected]>
Reviewed-by: Rodrigo Siqueira <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions
