Skip to content

Commit

Permalink
net/ipv6: Do not reset nl_net in ip6_route_info_create
Browse files Browse the repository at this point in the history
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 <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Ahern authored and David S. Miller committed Sep 1, 2018
1 parent 066b103 commit 1367bbf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1367bbf

Please sign in to comment.