ipv4: Don't add TCP-code in inet_sock_destruct
[linux-2.6-block.git] / net / ipv4 / tcp.c
index df83d744e380f6d72dafe25bff7fe6e4382641e8..7b1e940393cf51aca7baacb5e3ec36d8e6428d67 100644 (file)
@@ -2325,6 +2325,13 @@ int tcp_disconnect(struct sock *sk, int flags)
 }
 EXPORT_SYMBOL(tcp_disconnect);
 
+void tcp_sock_destruct(struct sock *sk)
+{
+       inet_sock_destruct(sk);
+
+       kfree(inet_csk(sk)->icsk_accept_queue.fastopenq);
+}
+
 static inline bool tcp_can_repair_sock(const struct sock *sk)
 {
        return capable(CAP_NET_ADMIN) &&