diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-01-31 04:55:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-01-31 15:26:30 +0000 |
| commit | 5b7789e8fa8f353ad8f2c44de2385cb161b22d32 (patch) | |
| tree | 20c6dc0701b6a6f0a49b031e5765f3af8782618b /fs/jbd2/commit.c | |
| parent | tcp_nv: fix potential integer overflow in tcpnv_acked (diff) | |
| download | kernel-5b7789e8fa8f353ad8f2c44de2385cb161b22d32.tar.gz kernel-5b7789e8fa8f353ad8f2c44de2385cb161b22d32.zip | |
openvswitch: meter: Use 64-bit arithmetic instead of 32-bit
Add suffix LL to constant 1000 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 long long int (64 bits, signed).
The expression (band->burst_size + band->rate) * 1000 is currently
being evaluated using 32-bit arithmetic.
Addresses-Coverity-ID: 1461563 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
