tcp: Fix tcp_mark_head_lost() with packets == 0
authorLennart Schulte <lennart.schulte@nets.rwth-aachen.de>
Wed, 17 Mar 2010 02:16:29 +0000 (02:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Mar 2010 05:47:22 +0000 (22:47 -0700)
commit6830c25b7d08fbbd922959425193791bc42079f2
tree4a3175a62c62375a5b7a611914842ccc48328aa1
parenta50436f2cd6e85794f7e1aad795ca8302177b896
tcp: Fix tcp_mark_head_lost() with packets == 0

A packet is marked as lost in case packets == 0, although nothing should be done.
This results in a too early retransmitted packet during recovery in some cases.
This small patch fixes this issue by returning immediately.

Signed-off-by: Lennart Schulte <lennart.schulte@nets.rwth-aachen.de>
Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c