aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2017-10-11 02:12:33 +0000
committerDavid S. Miller <[email protected]>2017-10-11 03:24:29 +0000
commitc0576e3975084d4699b7bfef578613fb8e1144f6 (patch)
tree3c077a45caeb9a84a3c552bd623034f6b788f7da /net/switchdev/switchdev.c
parentRevert "net: defer call to cgroup_sk_alloc()" (diff)
downloadkernel-c0576e3975084d4699b7bfef578613fb8e1144f6.tar.gz
kernel-c0576e3975084d4699b7bfef578613fb8e1144f6.zip
net: call cgroup_sk_alloc() earlier in sk_clone_lock()
If for some reason, the newly allocated child need to be freed, we will call cgroup_put() (via sk_free_unlock_clone()) while the corresponding cgroup_get() was not yet done, and we will free memory too soon. Fixes: d979a39d7242 ("cgroup: duplicate cgroup reference when cloning sockets") Signed-off-by: Eric Dumazet <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Tejun Heo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions