diff options
author | David S. Miller <davem@davemloft.net> | 2008-06-13 23:52:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-13 23:52:39 -0400 |
commit | 4ae127d1b6c71f9240dd4245f240e6dd8fc98014 (patch) | |
tree | b7aa27b3e0c655f4613fe2146cb57d7f69e421f6 /net/ipv4/tcp_ipv4.c | |
parent | 875ec4333b99144e2589e900a0bcd2c25c757b27 (diff) | |
parent | 7775c9753b94fe429dc4323360d6502c95e0dd6e (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/smc911x.c
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 9088d709725e..b219a7a7cd08 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1185,7 +1185,7 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb) | |||
1185 | if (sk_acceptq_is_full(sk) && inet_csk_reqsk_queue_young(sk) > 1) | 1185 | if (sk_acceptq_is_full(sk) && inet_csk_reqsk_queue_young(sk) > 1) |
1186 | goto drop; | 1186 | goto drop; |
1187 | 1187 | ||
1188 | req = reqsk_alloc(&tcp_request_sock_ops); | 1188 | req = inet_reqsk_alloc(&tcp_request_sock_ops); |
1189 | if (!req) | 1189 | if (!req) |
1190 | goto drop; | 1190 | goto drop; |
1191 | 1191 | ||
@@ -1818,14 +1818,6 @@ int tcp_v4_destroy_sock(struct sock *sk) | |||
1818 | sk->sk_sndmsg_page = NULL; | 1818 | sk->sk_sndmsg_page = NULL; |
1819 | } | 1819 | } |
1820 | 1820 | ||
1821 | if (tp->defer_tcp_accept.request) { | ||
1822 | reqsk_free(tp->defer_tcp_accept.request); | ||
1823 | sock_put(tp->defer_tcp_accept.listen_sk); | ||
1824 | sock_put(sk); | ||
1825 | tp->defer_tcp_accept.listen_sk = NULL; | ||
1826 | tp->defer_tcp_accept.request = NULL; | ||
1827 | } | ||
1828 | |||
1829 | atomic_dec(&tcp_sockets_allocated); | 1821 | atomic_dec(&tcp_sockets_allocated); |
1830 | 1822 | ||
1831 | return 0; | 1823 | return 0; |