summaryrefslogtreecommitdiff
path: root/kernel/sysctl_check.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-11-14 05:12:14 (GMT)
committerDavid S. Miller <davem@davemloft.net>2007-11-14 05:12:14 (GMT)
commit6dd10a62353a50b30b30e0c18653650975b29c71 (patch)
tree1410482f86ec88a4f65692c4dd301eae5696a762 /kernel/sysctl_check.c
parentcb4da1a34de3840ce49dc7292a063e1ef7f127af (diff)
downloadlinux-6dd10a62353a50b30b30e0c18653650975b29c71.tar.xz
[NET] random : secure_tcp_sequence_number should not assume CONFIG_KTIME_SCALAR
All 32 bits machines but i386 dont have CONFIG_KTIME_SCALAR. On these machines, ktime.tv64 is more than 4 times the (correct) result given by ktime_to_ns() Again on these machines, using ktime_get_real().tv64 >> 6 give a 32bits rollover every 64 seconds, which is not wanted (less than the 120 s MSL) Using ktime_to_ns() is the portable way to get nsecs from a ktime, and have correct code. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sysctl_check.c')
0 files changed, 0 insertions, 0 deletions