diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index ffa366099eb2..5089dd6bee0f 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -2455,7 +2455,8 @@ static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i) | |||
2455 | /* Because we don't lock the socket, | 2455 | /* Because we don't lock the socket, |
2456 | * we might find a transient negative value. | 2456 | * we might find a transient negative value. |
2457 | */ | 2457 | */ |
2458 | rx_queue = max_t(int, tp->rcv_nxt - tp->copied_seq, 0); | 2458 | rx_queue = max_t(int, READ_ONCE(tp->rcv_nxt) - |
2459 | tp->copied_seq, 0); | ||
2459 | 2460 | ||
2460 | seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " | 2461 | seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " |
2461 | "%08X %5u %8d %lu %d %pK %lu %lu %u %u %d", | 2462 | "%08X %5u %8d %lu %d %pK %lu %lu %u %u %d", |