TCP: tcp_hybla: Fix integer overflow in slow start increment
authorDaniele Lacamera <root@danielinux.net>
Wed, 2 Jun 2010 02:02:04 +0000 (02:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 14:15:48 +0000 (07:15 -0700)
commitedafe502404f3669d364b6e96d79b54067b634b4
treeef3c1a3921e20b2dc40938f2de23e893a6a53c4a
parent33c29dde7d04dc0ec0edb649d20ccf1351c13a06
TCP: tcp_hybla: Fix integer overflow in slow start increment

For large values of rtt, 2^rho operation may overflow u32. Clamp down the increment to 2^16.

Signed-off-by: Daniele Lacamera <root@danielinux.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_hybla.c