]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08991ebb403ebab3ccba75905ac5d2d454d0e7d0
treeef3c1a3921e20b2dc40938f2de23e893a6a53c4a
parent1666c57a578948a9205f74bf95825322bf3fe37d
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