diff options
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 339944690329..c802bc80c400 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -482,8 +482,10 @@ struct sock *tcp_create_openreq_child(const struct sock *sk, | |||
482 | WRITE_ONCE(newtp->rcv_nxt, seq); | 482 | WRITE_ONCE(newtp->rcv_nxt, seq); |
483 | newtp->segs_in = 1; | 483 | newtp->segs_in = 1; |
484 | 484 | ||
485 | newtp->snd_sml = newtp->snd_una = | 485 | seq = treq->snt_isn + 1; |
486 | newtp->snd_nxt = newtp->snd_up = treq->snt_isn + 1; | 486 | newtp->snd_sml = newtp->snd_una = seq; |
487 | WRITE_ONCE(newtp->snd_nxt, seq); | ||
488 | newtp->snd_up = seq; | ||
487 | 489 | ||
488 | INIT_LIST_HEAD(&newtp->tsq_node); | 490 | INIT_LIST_HEAD(&newtp->tsq_node); |
489 | INIT_LIST_HEAD(&newtp->tsorted_sent_queue); | 491 | INIT_LIST_HEAD(&newtp->tsorted_sent_queue); |