Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1367bbf5 authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 066b1030
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);