]> Git Repo - linux.git/commit
net: Initialise init_net.count to 1
authorDavid Howells <[email protected]>
Thu, 27 Apr 2017 21:40:23 +0000 (22:40 +0100)
committerDavid S. Miller <[email protected]>
Mon, 1 May 2017 02:32:16 +0000 (22:32 -0400)
commitb5082df8019ac47ff1e6b6454480e39d0223fc46
tree2f9b00cd0df7065e949255aa6d3256c80efe4c4a
parent5e0740c445e6ae4026f5e52456ff8d0be9725183
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/net_namespace.c
This page took 0.054953 seconds and 4 git commands to generate.