]> git.baikalelectronics.ru Git - kernel.git/commit
net: Initialise init_net.count to 1
authorDavid Howells <dhowells@redhat.com>
Thu, 27 Apr 2017 21:40:23 +0000 (22:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:32:16 +0000 (22:32 -0400)
commit7f9091f5f915cf0aa524685bfa555a854ad6a878
tree2f9b00cd0df7065e949255aa6d3256c80efe4c4a
parent0d0dc7dd98bca44ca2bd9c831690a65b2b8fff2d
net: Initialise init_net.count to 1

Initialise init_net.count to 1 for its pointer from init_nsproxy lest
someone tries to do a get_net() and a put_net() in a process in which
current->ns_proxy->net_ns points to the initial network namespace.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c