diff options
author | Colin Ian King <[email protected]> | 2020-06-18 11:04:00 +0100 |
---|---|---|
committer | Liviu Dudau <[email protected]> | 2020-06-19 13:40:06 +0100 |
commit | 5f368ddea6fec519bdb93b5368f6a844b6ea27a6 (patch) | |
tree | e46c852b14f9c11d693135beffd9e7d599689ebd /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 79ce058032c391b12af928b1e30abf92482a270f (diff) |
drm/arm: fix unintentional integer overflow on left shift
Shifting the integer value 1 is evaluated using 32-bit arithmetic
and then used in an expression that expects a long value leads to
a potential integer overflow. Fix this by using the BIT macro to
perform the shift to avoid the overflow.
Addresses-Coverity: ("Unintentional integer overflow")
Fixes: ad49f8602fe8 ("drm/arm: Add support for Mali Display Processors")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Liviu Dudau <[email protected]>
Signed-off-by: Liviu Dudau <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions