From: David Ahern Date: Wed, 29 Aug 2018 23:54:01 +0000 (-0700) Subject: net/ipv6: Do not reset nl_net in ip6_route_info_create X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1367bbf52a4355990f14e7e97cad708b2e266e65;p=openwrt%2Fstaging%2Fblogic.git net/ipv6: Do not reset nl_net in ip6_route_info_create 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. Signed-off-by: David Ahern Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index c4ea13e8360b..b5f385d2b0e9 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3138,8 +3138,6 @@ install_route: rt->fib6_nh.nh_dev = dev; rt->fib6_table = table; - cfg->fc_nlinfo.nl_net = dev_net(dev); - if (idev) in6_dev_put(idev);