diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index fd44721abebb..b13eb0111270 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -952,7 +952,7 @@ struct dst_entry *icmp6_dst_alloc(struct net_device *dev, | |||
952 | icmp6_dst_gc_list = &rt->u.dst; | 952 | icmp6_dst_gc_list = &rt->u.dst; |
953 | spin_unlock_bh(&icmp6_dst_lock); | 953 | spin_unlock_bh(&icmp6_dst_lock); |
954 | 954 | ||
955 | fib6_force_start_gc(); | 955 | fib6_force_start_gc(dev->nd_net); |
956 | 956 | ||
957 | out: | 957 | out: |
958 | return &rt->u.dst; | 958 | return &rt->u.dst; |
@@ -1230,6 +1230,9 @@ install_route: | |||
1230 | rt->u.dst.dev = dev; | 1230 | rt->u.dst.dev = dev; |
1231 | rt->rt6i_idev = idev; | 1231 | rt->rt6i_idev = idev; |
1232 | rt->rt6i_table = table; | 1232 | rt->rt6i_table = table; |
1233 | |||
1234 | cfg->fc_nlinfo.nl_net = dev->nd_net; | ||
1235 | |||
1233 | return __ip6_ins_rt(rt, &cfg->fc_nlinfo); | 1236 | return __ip6_ins_rt(rt, &cfg->fc_nlinfo); |
1234 | 1237 | ||
1235 | out: | 1238 | out: |