diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-11-20 12:03:48 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-11-20 12:03:48 +0800 |
commit | 382ac60c32998318f133b8b84030aa83a8f600fe (patch) | |
tree | 92781c459b3e6ab6848d4c1d08a677d8c651e81d /net/ipv4/tcp.c | |
parent | 652dd9c8611986c5c99b41f2862b93a9fcc92e9c (diff) | |
parent | d0bcb84cbec27d7eb876b6f1d1fffdb65ccefcd4 (diff) |
Merge remote-tracking branch 'rt-stable/v4.9-rt' into linux-linaro-lsk-v4.9-rt
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 1a4db27f5833..6b3d27e50317 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2297,6 +2297,10 @@ int tcp_disconnect(struct sock *sk, int flags) tcp_set_ca_state(sk, TCP_CA_Open); tcp_clear_retrans(tp); inet_csk_delack_init(sk); + /* Initialize rcv_mss to TCP_MIN_MSS to avoid division by 0 + * issue in __tcp_select_window() + */ + icsk->icsk_ack.rcv_mss = TCP_MIN_MSS; tcp_init_send_head(sk); memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); __sk_dst_reset(sk); |