[TCP] tcp-lp: prevent chance for oops
authorWong Hoi Sing Edison <hswong3i@gmail.com>
Thu, 28 Sep 2006 21:40:21 +0000 (14:40 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:03:07 +0000 (18:03 -0700)
commitbfbea8a8869a0e21b97605841d04190d63665d19
treec447c1787942fcc9d2b4c6b7404ca75104984c70
parent1811474620d1986da45f7245168bf7c2d883d770
[TCP] tcp-lp: prevent chance for oops

This patch fix the chance for tcp_lp_remote_hz_estimator return 0, if
0 < rhz < 64. It also make sure the flag LP_VALID_RHZ is set
correctly.

Signed-off-by: Wong Hoi Sing Edison <hswong3i@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_lp.c