diff options
| author | Alex Hung <alex.hung@amd.com> | 2026-02-18 10:38:33 -0700 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-03-02 16:39:22 -0500 |
| commit | 11de9539fedf7f56f55246714b231da52aabbe72 (patch) | |
| tree | 360e5935d1f5c50f611eff52b8bd46e6a0e7cda6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | d9bc24d263fdb420f61a8a8b8bbb1a68f5a0f803 (diff) | |
drm/amd/display: Prevent integer overflow when mhz to khz
[WHAT]
Cast to long long before multiplication to prevent overflow
when converting mhz to khz by multiplying by 1000.
This is reported as INTEGER_OVERFLOW errors by Coverity.
Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
