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/ipv4/fib_frontend.c | |
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/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 4e5216e9aac..e787d215115 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -881,7 +881,7 @@ static void nl_fib_lookup_exit(struct net *net) | |||
881 | * initial network namespace. So the socket will be safe to free. | 881 | * initial network namespace. So the socket will be safe to free. |
882 | */ | 882 | */ |
883 | net->ipv4.fibnl->sk_net = get_net(&init_net); | 883 | net->ipv4.fibnl->sk_net = get_net(&init_net); |
884 | sock_release(net->ipv4.fibnl->sk_socket); | 884 | netlink_kernel_release(net->ipv4.fibnl); |
885 | } | 885 | } |
886 | 886 | ||
887 | static void fib_disable_ip(struct net_device *dev, int force) | 887 | static void fib_disable_ip(struct net_device *dev, int force) |