Merge tag 'for-linus-20121219' of git://git.infradead.org/linux-mtd
[cascardo/linux.git] / net / ipv4 / tcp_output.c
index 948ac27..5d45159 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;