diff options
| author | Gustavo A. R. Silva <[email protected]> | 2021-02-10 21:23:30 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-02-18 21:43:09 +0000 |
| commit | f2d51b20d747e027e81ab3c3f24a6c833ada3fb3 (patch) | |
| tree | cd29e85956b22a1142afa0902f046f3193460dcf /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amdgpu/display: remove hdcp_srm sysfs on device removal (diff) | |
| download | kernel-f2d51b20d747e027e81ab3c3f24a6c833ada3fb3.tar.gz kernel-f2d51b20d747e027e81ab3c3f24a6c833ada3fb3.zip | |
drm/amd/display: Fix potential integer overflow
Fix potential integer overflow by casting actual_calculated_clock_100hz
to u64, in order to give the compiler complete information about the
proper arithmetic to use.
Notice that such variable is used in a context that expects
an expression of type u64 (64 bits, unsigned) and the following
expression is currently being evaluated using 32-bit arithmetic:
actual_calculated_clock_100hz * post_divider
Fixes: 7a03fdf628af ("drm/amd/display: fix 64bit division issue on 32bit OS")
Addresses-Coverity-ID: 1501691 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
