diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-28 17:41:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:07 -0500 |
commit | b7c6ba6eb1234e35a74fb8ba8123232a7b1ba9e4 (patch) | |
tree | 672c08c95229a6ac242ab12a5195dceddb0f3127 /net/core | |
parent | 4f84d82f7a623f8641af2574425c329431ff158f (diff) |
[NETNS]: Consolidate kernel netlink socket destruction.
Create a specific helper for netlink kernel socket disposal. This just
let the code look better and provides a ground for proper disposal
inside a namespace.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Tested-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index a5f4f661fa62..02cf848f71d2 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -1384,7 +1384,7 @@ static void rtnetlink_net_exit(struct net *net) | |||
1384 | * free. | 1384 | * free. |
1385 | */ | 1385 | */ |
1386 | sk->sk_net = get_net(&init_net); | 1386 | sk->sk_net = get_net(&init_net); |
1387 | sock_release(net->rtnl->sk_socket); | 1387 | netlink_kernel_release(net->rtnl); |
1388 | net->rtnl = NULL; | 1388 | net->rtnl = NULL; |
1389 | } | 1389 | } |
1390 | } | 1390 | } |