aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-04-02 15:48:51 +0100
committerDavid S. Miller <[email protected]>2020-04-02 18:00:01 -0700
commit468c2a100208461c1821315f6fd81b32b9d12561 (patch)
treeb1a3f816ed2c0c4b798f31c00699b0322924b54f /scripts/bpf_helpers_doc.py
parent2f5107c34df329854d9e0bcef8185db8c07b59e5 (diff)
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 <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Tested-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions