diff options
author | Eric Dumazet <edumazet@google.com> | 2015-04-17 01:12:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-17 19:28:31 +0200 |
commit | fad9dfefea6405039491e7e4fc21fb6e59e7d26c (patch) | |
tree | db00e0628d50740f70b98effd4f39eed46161dd4 /net/ipv4/tcp_dctcp.c | |
parent | net: dsa: mv88e6xxx: Add missing initialization in mv88e6xxx_set_port_state() (diff) | |
download | linux-fad9dfefea6405039491e7e4fc21fb6e59e7d26c.tar.xz linux-fad9dfefea6405039491e7e4fc21fb6e59e7d26c.zip |
tcp: tcp_get_info() should fetch socket fields once
tcp_get_info() can be called without holding socket lock,
so any socket fields can change under us.
Use READ_ONCE() to fetch sk_pacing_rate and sk_max_pacing_rate
Fixes: 977cb0ecf82e ("tcp: add pacing_rate information into tcp_info")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_dctcp.c')
0 files changed, 0 insertions, 0 deletions