OSDN Git Service

tcp: fix wraparound issue in tcp_lp
authorEric Dumazet <edumazet@google.com>
Mon, 1 May 2017 22:29:48 +0000 (15:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 12:00:21 +0000 (14:00 +0200)
commit91260baa9d673bc7b4e0ca95d94e2b086a597773
treed013b25426fcb0bcf475f44f31153b1ce241cccc
parent493d0a7be31caba12734942d14fa28bed389862a
tcp: fix wraparound issue in tcp_lp

[ Upstream commit a9f11f963a546fea9144f6a6d1a307e814a387e7 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_lp.c