Skip to contentSkip to conversation

net/ipv6: Do not reset nl_net in ip6_route_info_create

PATCH Applied [email protected] 2 participants 2 messages Aug 30, 2018 – Sep 1, 2018

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 net/ipv6: Do not reset nl_net in ip6_route_info_create

From: David Ahern <[email protected]>

nl_net is set on entry to ip6_route_info_create. Only devices within that namespace are considered so no need to reset it before returning.

---
 net/ipv6/route.c | 2 --
 1 file changed, 2 deletions(-)
net/ipv6/route.c +0 -2
index c4ea13e8360b..b5f385d2b0e9 100644
@@ -3138,8 +3138,6 @@ static struct fib6_info *ip6_route_info_create(struct fib6_config *cfg,
 	rt->fib6_nh.nh_dev = dev;
 	rt->fib6_table = table;
 
-	cfg->fc_nlinfo.nl_net = dev_net(dev);
-
 	if (idev)
 		in6_dev_put(idev);
 
Signature · 1 line
2.11.0