aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 12:26:33 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-13 10:36:05 -0500
commitbcab1ddd9b2b105390712a9c1605bdb20a7f9a03 (patch)
treec50571b51e23a882af827651bb43dd10b8006f0f /net/unix/af_unix.c
parent1a57feb847c56d6193f67d0e892c24e71f9e3ab1 (diff)
downloadlinux-bcab1ddd9b2b105390712a9c1605bdb20a7f9a03.tar.gz
linux-bcab1ddd9b2b105390712a9c1605bdb20a7f9a03.tar.bz2
linux-bcab1ddd9b2b105390712a9c1605bdb20a7f9a03.zip
net: Move mutex_unlock() in cleanup_net() up
net_sem protects from pernet_list changing, while ops_free_list() makes simple kfree(), and it can't race with other pernet_operations callbacks. So we may release net_mutex earlier then it was. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions