diff options
author | David S. Miller <davem@davemloft.net> | 2013-06-05 18:56:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-05 19:37:30 -0400 |
commit | 6bc19fb82d4c05a9eee19d6d2aab2ce26e499ec2 (patch) | |
tree | 8b049ef383307f5dae91b5c9cf78dbfb9b74a4d1 /net/ipv6/addrconf.c | |
parent | 11a164a04382d735230b01f4cc46ad78a7c4abf6 (diff) | |
parent | 4d3797d7e1861ac1af150a6189315786c5e1c820 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge 'net' bug fixes into 'net-next' as we have patches
that will build on top of them.
This merge commit includes a change from Emil Goode
(emilgoode@gmail.com) that fixes a warning that would
have been introduced by this merge. Specifically it
fixes the pingv6_ops method ipv6_chk_addr() to add a
"const" to the "struct net_device *dev" argument and
likewise update the dummy_ipv6_chk_addr() declaration.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 7b34f06af344..21010fddb203 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1486,7 +1486,7 @@ static int ipv6_count_addresses(struct inet6_dev *idev) | |||
1486 | } | 1486 | } |
1487 | 1487 | ||
1488 | int ipv6_chk_addr(struct net *net, const struct in6_addr *addr, | 1488 | int ipv6_chk_addr(struct net *net, const struct in6_addr *addr, |
1489 | struct net_device *dev, int strict) | 1489 | const struct net_device *dev, int strict) |
1490 | { | 1490 | { |
1491 | struct inet6_ifaddr *ifp; | 1491 | struct inet6_ifaddr *ifp; |
1492 | unsigned int hash = inet6_addr_hash(addr); | 1492 | unsigned int hash = inet6_addr_hash(addr); |
@@ -2660,8 +2660,10 @@ static void init_loopback(struct net_device *dev) | |||
2660 | sp_rt = addrconf_dst_alloc(idev, &sp_ifa->addr, 0); | 2660 | sp_rt = addrconf_dst_alloc(idev, &sp_ifa->addr, 0); |
2661 | 2661 | ||
2662 | /* Failure cases are ignored */ | 2662 | /* Failure cases are ignored */ |
2663 | if (!IS_ERR(sp_rt)) | 2663 | if (!IS_ERR(sp_rt)) { |
2664 | sp_ifa->rt = sp_rt; | ||
2664 | ip6_ins_rt(sp_rt); | 2665 | ip6_ins_rt(sp_rt); |
2666 | } | ||
2665 | } | 2667 | } |
2666 | read_unlock_bh(&idev->lock); | 2668 | read_unlock_bh(&idev->lock); |
2667 | } | 2669 | } |