]> 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)
commit5479ffecc6b097236212f9c7342cb8d1e07a39b3
treef0b2d91346ba97af27e4b5ba3cdaf8f4127d02f7
parent1a2d86b73aa886d98b34ce69b6a9ba4c79e1c4f7
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