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)
commita9f11f963a546fea9144f6a6d1a307e814a387e7
treef0b2d91346ba97af27e4b5ba3cdaf8f4127d02f7
parentddc665a4bb4b728b4e6ecec8db1b64efa9184b9c
tcp: fix wraparound issue in tcp_lp

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

Fixes: 7c106d7e782b ("[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