summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-02 17:48:51 +0300
committerDavid S. Miller <davem@davemloft.net>2020-04-03 04:00:01 +0300
commit468c2a100208461c1821315f6fd81b32b9d12561 (patch)
treeb1a3f816ed2c0c4b798f31c00699b0322924b54f /tools/perf/scripts/python/export-to-sqlite.py
parent2f5107c34df329854d9e0bcef8185db8c07b59e5 (diff)
downloadlinux-468c2a100208461c1821315f6fd81b32b9d12561.tar.xz
mlxsw: spectrum_trap: fix unintention 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 64-bit value, so there is potentially an integer overflow. Fix this by using the BIT_ULL macro to perform the shift and avoid the overflow. Addresses-Coverity: ("Unintentional integer overflow") Fixes: 13f2e64b94ea ("mlxsw: spectrum_trap: Add devlink-trap policer support") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Tested-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions