]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 07:19:09 +0000 (09:19 +0200)
commitda2c082d62e93cb18397ff01d23f6d3de318ebd0
tree1959c02e9dcdaaa03b886cb36c3a53552f5a98ad
parentd01e0e80edbef33bf2e5c0675ec496fd384104fe
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