[NETNS]: Consolidate kernel netlink socket destruction.
[deliverable/linux.git] / net / ipv4 / fib_frontend.c
index 4e5216e9aacb3739787138fe4db8b6ef523226e9..e787d215115217492ab31bda0ee7df2010bfe82e 100644 (file)
@@ -881,7 +881,7 @@ static void nl_fib_lookup_exit(struct net *net)
         * initial network namespace. So the socket will  be safe to free.
         */
        net->ipv4.fibnl->sk_net = get_net(&init_net);
-       sock_release(net->ipv4.fibnl->sk_socket);
+       netlink_kernel_release(net->ipv4.fibnl);
 }
 
 static void fib_disable_ip(struct net_device *dev, int force)
This page took 0.041255 seconds and 5 git commands to generate.