Revert "net: defer call to cgroup_sk_alloc()"
authorEric Dumazet <edumazet@google.com>
Wed, 11 Oct 2017 02:12:32 +0000 (19:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 03:24:29 +0000 (20:24 -0700)
commit75cb070960ade40fba5de32138390f3c85c90941
tree0a2ff2fbc1f4ba7381f5ea88b716d732c66e6f63
parentbefc7a3324b45b7478b29861f2a77f8b2bc17922
Revert "net: defer call to cgroup_sk_alloc()"

This reverts commit fbb1fb4ad415cb31ce944f65a5ca700aaf73a227.

This was not the proper fix, lets cleanly revert it, so that
following patch can be carried to stable versions.

sock_cgroup_ptr() callers do not expect a NULL return value.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/cgroup/cgroup.c
net/core/sock.c
net/ipv4/inet_connection_sock.c