Gustavo A. R. Silva
e4823fbd22
tcp_nv: fix potential integer overflow in tcpnv_acked
...
Add suffix ULL to constant 80000 in order to avoid a potential integer
overflow and 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.
The current cast to u64 effectively applies to the whole expression
as an argument of type u64 to be passed to div64_u64, but it does
not prevent it from being evaluated using 32-bit arithmetic instead
of 64-bit arithmetic.
Also, once the expression is properly evaluated using 64-bit arithmentic,
there is no need for the parentheses and the external cast to u64.
Addresses-Coverity-ID: 1357588 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-01-31 10:26:30 -05:00
..
2018-01-21 11:35:34 -05:00
2018-01-24 19:13:45 -05:00
2017-11-03 22:11:17 +08:00
2018-01-17 00:10:42 -05:00
2017-10-21 01:33:19 +01:00
2018-01-29 14:32:31 -05:00
2018-01-23 13:51:56 -05:00
2018-01-17 00:10:42 -05:00
2018-01-24 19:13:45 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-03 15:35:59 -07:00
2017-12-19 14:21:58 -05:00
2018-01-16 15:01:33 -05:00
2017-08-01 16:09:14 -07:00
2017-10-08 10:12:15 -07:00
2017-10-24 18:44:42 +09:00
2018-01-23 13:51:56 -05:00
2017-12-20 14:00:25 -05:00
2018-01-02 13:54:04 -05:00
2017-11-15 11:56:19 -08:00
2017-12-20 14:00:25 -05:00
2018-01-15 14:23:42 -05:00
2017-10-05 18:19:22 -07:00
2017-11-02 11:10:55 +01:00
2017-11-04 09:26:51 +09:00
2018-01-25 21:39:43 -05:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2017-08-22 14:27:18 -07:00
2018-01-25 21:51:31 -05:00
2017-06-25 11:42:01 -04:00
2018-01-29 10:15:51 -05:00
2018-01-25 16:27:34 -05:00
2018-01-24 19:13:45 -05:00
2017-10-30 21:09:24 +09:00
2018-01-30 09:20:25 -05:00
2017-10-12 22:57:11 -07:00
2018-01-02 14:27:29 -05:00
2018-01-08 18:11:02 +01:00
2017-07-01 07:39:08 -07:00
2018-01-16 15:01:33 -05:00
2017-08-07 11:39:22 -07:00
2018-01-25 21:51:31 -05:00
2018-01-17 00:10:42 -05:00
2017-10-28 19:24:38 +09:00
2017-11-15 14:09:52 +09:00
2018-01-19 15:39:30 -05:00
2017-08-06 21:25:10 -07:00
2017-10-16 21:24:25 +01:00
2017-11-15 14:09:52 +09:00
2017-08-06 21:25:10 -07:00
2017-12-20 14:00:25 -05:00
2017-12-13 15:51:12 -05:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2018-01-19 15:39:30 -05:00
2018-01-16 15:01:33 -05:00
2017-05-17 16:06:01 -04:00
2018-01-15 14:23:42 -05:00
2017-12-13 14:33:10 -05:00
2018-01-31 10:26:30 -05:00
2018-01-22 16:01:30 -05:00
2018-01-25 16:41:14 -08:00
2017-12-08 10:07:02 -05:00
2017-12-08 14:14:11 -05:00
2017-08-06 21:25:10 -07:00
2018-01-29 10:15:51 -05:00
2017-08-14 22:17:05 -07:00
2017-09-29 06:07:00 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-01-29 17:56:23 -05:00
2017-08-07 11:39:22 -07:00
2017-11-02 11:10:55 +01:00
2018-01-22 16:01:30 -05:00
2017-07-24 13:52:59 -07:00
2018-01-25 21:51:31 -05:00
2018-01-16 15:01:33 -05:00
2017-12-19 08:23:21 +01:00
2017-06-16 11:48:39 -04:00
2018-01-24 23:44:15 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00