]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/tcp_output.c
Merge tag 'nfs-for-3.8-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[~andy/linux] / net / ipv4 / tcp_output.c
index 948ac275b9b52ed10c1adaa9f931760a0903c788..5d451593ef16f98c65379da619b08e3d47236bff 100644 (file)
@@ -2992,6 +2992,11 @@ int tcp_connect(struct sock *sk)
 
        tcp_connect_init(sk);
 
+       if (unlikely(tp->repair)) {
+               tcp_finish_connect(sk, NULL);
+               return 0;
+       }
+
        buff = alloc_skb_fclone(MAX_TCP_HEADER + 15, sk->sk_allocation);
        if (unlikely(buff == NULL))
                return -ENOBUFS;