diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-02 15:09:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-03 17:21:07 +0300 |
commit | c18a9c096683dd30300686ffc755443816893968 (patch) | |
tree | 743b298f57a1343169139eb1dfcd8808037ad075 /tools/testing/selftests/bpf | |
parent | 00f553660a7f524a3b913cb5cf6c5f33f9638f09 (diff) | |
download | linux-c18a9c096683dd30300686ffc755443816893968.tar.xz |
net: stmmac_tc: use 64-bit arithmetic instead of 32-bit
Add suffix UL to constant 1024 in order to give the compiler complete
information about the proper arithmetic to use. Notice that this
constant is used in a context that expects an expression of type
u64 (64 bits, unsigned) and following expressions are currently
being evaluated using 32-bit arithmetic:
qopt->idleslope * 1024 * ptr
qopt->hicredit * 1024 * 8
qopt->locredit * 1024 * 8
Addresses-Coverity-ID: 1470246 ("Unintentional integer overflow")
Addresses-Coverity-ID: 1470248 ("Unintentional integer overflow")
Addresses-Coverity-ID: 1470249 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions