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/ndisc.c | |
parent | 0eb8b1fe9238ca4c1797e4c105d5790abda1726f (diff) | |
download | kernel_samsung_espresso10-191cd582500f49b32a63040fedeebb0168c720af.zip kernel_samsung_espresso10-191cd582500f49b32a63040fedeebb0168c720af.tar.gz kernel_samsung_espresso10-191cd582500f49b32a63040fedeebb0168c720af.tar.bz2 |
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/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index beb48e3..f1c62ba 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -549,7 +549,7 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh, override = 0; in6_ifa_put(ifp); } else { - if (ipv6_dev_get_saddr(dev, daddr, + if (ipv6_dev_get_saddr(dev_net(dev), dev, daddr, inet6_sk(dev_net(dev)->ipv6.ndisc_sk)->srcprefs, &tmpaddr)) return; |