summaryrefslogtreecommitdiff
path: root/net/compat.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-12-07 12:03:55 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-07 13:58:25 -0800
commit90548909f7ff41934b9f719e9331695695cb3988 (patch)
treee59466c9037a74f0bc8715a04310ad58c88f43dd /net/compat.c
parentdea96398b30bf6b5d966a9133d0ad30cd1aa946b (diff)
tcp: avoid a possible divide by zero
[ Upstream commit ad9f4f50fe9288bbe65b7dfd76d8820afac6a24c ] 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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions