diff options
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; |