diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 948ac275b9b5..5d451593ef16 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -2992,6 +2992,11 @@ int tcp_connect(struct sock *sk) | |||
2992 | 2992 | ||
2993 | tcp_connect_init(sk); | 2993 | tcp_connect_init(sk); |
2994 | 2994 | ||
2995 | if (unlikely(tp->repair)) { | ||
2996 | tcp_finish_connect(sk, NULL); | ||
2997 | return 0; | ||
2998 | } | ||
2999 | |||
2995 | buff = alloc_skb_fclone(MAX_TCP_HEADER + 15, sk->sk_allocation); | 3000 | buff = alloc_skb_fclone(MAX_TCP_HEADER + 15, sk->sk_allocation); |
2996 | if (unlikely(buff == NULL)) | 3001 | if (unlikely(buff == NULL)) |
2997 | return -ENOBUFS; | 3002 | return -ENOBUFS; |