Re: [PATCH] tcp_nv: fix potential integer overflow in tcpnv_acked

2018-01-31 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 30 Jan 2018 22:21:48 -0600 > Add suffix ULL to constant 8 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 e

[PATCH] tcp_nv: fix potential integer overflow in tcpnv_acked

2018-01-30 Thread Gustavo A. R. Silva
Add suffix ULL to constant 8 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 w