diff options
author | David Ahern <dsahern@gmail.com> | 2018-04-17 17:33:10 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-17 23:41:16 -0400 |
commit | 7aef6859ee91ea867a3dff9ba47bca9b2de382f6 (patch) | |
tree | e0a30336e2a7afdb7ce50d19c768f99a194bb438 /net/ipv6/ip6_fib.c | |
parent | 43b059a312f35799ef7e3a49aba4f1e0128e30ca (diff) | |
download | linux-7aef6859ee91ea867a3dff9ba47bca9b2de382f6.tar.bz2 |
net/ipv6: Pass net to fib6_update_sernum
Pass net namespace to fib6_update_sernum. It can not be marked const
as fib6_new_sernum will change ipv6.fib6_sernum.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r-- | net/ipv6/ip6_fib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index deab2db6692e..74d2a3748e2f 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -105,9 +105,8 @@ enum { FIB6_NO_SERNUM_CHANGE = 0, }; -void fib6_update_sernum(struct rt6_info *rt) +void fib6_update_sernum(struct net *net, struct rt6_info *rt) { - struct net *net = dev_net(rt->dst.dev); struct fib6_node *fn; fn = rcu_dereference_protected(rt->rt6i_node, |