diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-12-07 12:03:55 +0000 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-04-17 16:16:02 -0400 |
commit | 5a37b428f0f71ab5554a639fba7bf9b6e2fb56e1 (patch) | |
tree | ef3a5628cd1a78eb7141c13220a964ba7bb81567 /net/atm | |
parent | 9436887e4dd873e46337048a48d17aa413cfc83a (diff) |
tcp: avoid a possible divide by zero
commit ad9f4f50fe9288bbe65b7dfd76d8820afac6a24c upstream
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions