diff options
author | Brian Haley <brian.haley@hp.com> | 2008-08-14 15:33:21 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-14 15:33:21 -0700 |
commit | 191cd582500f49b32a63040fedeebb0168c720af (patch) | |
tree | 173ce9682d77798c6e4ca7e14af57ea2f46c55b8 /net/ipv6/ip6_output.c | |
parent | 0eb8b1fe9238ca4c1797e4c105d5790abda1726f (diff) | |
download | kernel_samsung_smdk4412-191cd582500f49b32a63040fedeebb0168c720af.tar.gz kernel_samsung_smdk4412-191cd582500f49b32a63040fedeebb0168c720af.tar.bz2 kernel_samsung_smdk4412-191cd582500f49b32a63040fedeebb0168c720af.zip |
netns: Add network namespace argument to rt6_fill_node() and ipv6_dev_get_saddr()
ipv6_dev_get_saddr() blindly de-references dst_dev to get the network
namespace, but some callers might pass NULL. Change callers to pass a
namespace pointer instead.
Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index a4402de425d..0e844c2736a 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -934,7 +934,7 @@ static int ip6_dst_lookup_tail(struct sock *sk, goto out_err_release; if (ipv6_addr_any(&fl->fl6_src)) { - err = ipv6_dev_get_saddr(ip6_dst_idev(*dst)->dev, + err = ipv6_dev_get_saddr(net, ip6_dst_idev(*dst)->dev, &fl->fl6_dst, sk ? inet6_sk(sk)->srcprefs : 0, &fl->fl6_src); |