]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix wraparound issue in tcp_lp
authorEric Dumazet <edumazet@google.com>
Mon, 1 May 2017 22:29:48 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:07:02 +0000 (15:07 -0400)
commitbdaf9ea53f576f0b7b6c2bd8797889388a6c9c06
treef0b2d91346ba97af27e4b5ba3cdaf8f4127d02f7
parent189fe0057b4e05156052dfd4d5421670a6ca00e3
tcp: fix wraparound issue in tcp_lp

Be careful when comparing tcp_time_stamp to some u32 quantity,
otherwise result can be surprising.

Fixes: 00fb8534de06 ("[TCP]: TCP Low Priority congestion control")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_lp.c