aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 4278cec522c5..ad3d684e544a 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1697,13 +1697,13 @@ struct rt6_info *rt6_add_dflt_router(struct in6_addr *gwaddr,
1697 return rt6_get_dflt_router(gwaddr, dev); 1697 return rt6_get_dflt_router(gwaddr, dev);
1698} 1698}
1699 1699
1700void rt6_purge_dflt_routers(void) 1700void rt6_purge_dflt_routers(struct net *net)
1701{ 1701{
1702 struct rt6_info *rt; 1702 struct rt6_info *rt;
1703 struct fib6_table *table; 1703 struct fib6_table *table;
1704 1704
1705 /* NOTE: Keep consistent with rt6_get_dflt_router */ 1705 /* NOTE: Keep consistent with rt6_get_dflt_router */
1706 table = fib6_get_table(&init_net, RT6_TABLE_DFLT); 1706 table = fib6_get_table(net, RT6_TABLE_DFLT);
1707 if (table == NULL) 1707 if (table == NULL)
1708 return; 1708 return;
1709 1709