diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index e663b78a2ef6..149e79ac2891 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -4048,6 +4048,8 @@ static void tcp_reset(struct sock *sk) | |||
4048 | default: | 4048 | default: |
4049 | sk->sk_err = ECONNRESET; | 4049 | sk->sk_err = ECONNRESET; |
4050 | } | 4050 | } |
4051 | /* This barrier is coupled with smp_rmb() in tcp_poll() */ | ||
4052 | smp_wmb(); | ||
4051 | 4053 | ||
4052 | if (!sock_flag(sk, SOCK_DEAD)) | 4054 | if (!sock_flag(sk, SOCK_DEAD)) |
4053 | sk->sk_error_report(sk); | 4055 | sk->sk_error_report(sk); |