diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-12-07 12:03:55 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-08 20:34:08 (GMT) |
commit | ad9f4f50fe9288bbe65b7dfd76d8820afac6a24c (patch) | |
tree | f3f3100da8d042607bbbab31c1f8a060ba2b5f15 /net/dccp/ackvec.c | |
parent | c7757fdb41dfcf6add9f8a4576eb85aa5e77a4eb (diff) | |
download | linux-fsl-qoriq-ad9f4f50fe9288bbe65b7dfd76d8820afac6a24c.tar.xz |
tcp: avoid a possible divide by zero
sysctl_tcp_tso_win_divisor might be set to zero while one cpu runs in
tcp_tso_should_defer(). Make sure we dont allow a divide by zero by
reading sysctl_tcp_tso_win_divisor exactly once.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ackvec.c')
0 files changed, 0 insertions, 0 deletions