]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/inet_connection_sock.c
net: memcontrol: defer call to mem_cgroup_sk_alloc()
[linux.git] / net / ipv4 / inet_connection_sock.c
index c039c937ba90c7aec39ba2687bceb8253ead70aa..67aec7a106860b26c929fea1624d652c87972f04 100644 (file)
@@ -475,6 +475,7 @@ struct sock *inet_csk_accept(struct sock *sk, int flags, int *err, bool kern)
                }
                spin_unlock_bh(&queue->fastopenq.lock);
        }
+       mem_cgroup_sk_alloc(newsk);
 out:
        release_sock(sk);
        if (req)