]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/tcp_timer.c
Merge commit 'v3.3' into fbdev-next
[~andy/linux] / net / ipv4 / tcp_timer.c
index a516d1e399dfcb1a22ca39e452f3dbe725455ade..cd2e0723266d12b508569be0f4f6836cb21f94e7 100644 (file)
@@ -77,10 +77,7 @@ static int tcp_out_of_resources(struct sock *sk, int do_reset)
        if (sk->sk_err_soft)
                shift++;
 
-       if (tcp_too_many_orphans(sk, shift)) {
-               if (net_ratelimit())
-                       printk(KERN_INFO "Out of socket memory\n");
-
+       if (tcp_check_oom(sk, shift)) {
                /* Catch exceptional cases, when connection requires reset.
                 *      1. Last segment was sent recently. */
                if ((s32)(tcp_time_stamp - tp->lsndtime) <= TCP_TIMEWAIT_LEN ||