diff options
author | Alex Hung <[email protected]> | 2023-01-11 09:54:11 -0700 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-02-28 14:29:35 -0500 |
commit | b4ceeffd13870b641a284ffb0f6fb4ffe19b0b14 (patch) | |
tree | 6fd827aaae9b9bd8948cf2c8047c0d9d1cd345a4 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 1e5d4d8eb8c0f15d90c50e7abd686c980e54e42e (diff) |
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
[WHY]
When PTEBufferSizeInRequests is zero, UBSAN reports the following
warning because dml_log2 returns an unexpected negative value:
shift exponent 4294966273 is too large for 32-bit type 'int'
[HOW]
In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and
assign the result directly.
Reviewed-by: Jun Lei <[email protected]>
Acked-by: Qingqing Zhuo <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions