aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 51966b3f9719..fabc09a58d7f 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4035,6 +4035,8 @@ static void tcp_reset(struct sock *sk)
4035 default: 4035 default:
4036 sk->sk_err = ECONNRESET; 4036 sk->sk_err = ECONNRESET;
4037 } 4037 }
4038 /* This barrier is coupled with smp_rmb() in tcp_poll() */
4039 smp_wmb();
4038 4040
4039 if (!sock_flag(sk, SOCK_DEAD)) 4041 if (!sock_flag(sk, SOCK_DEAD))
4040 sk->sk_error_report(sk); 4042 sk->sk_error_report(sk);