diff options
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 26de8ee5095b..6c8b193474ba 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -3397,7 +3397,7 @@ static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr* nlh, | |||
3397 | kfree_skb(skb); | 3397 | kfree_skb(skb); |
3398 | goto errout_ifa; | 3398 | goto errout_ifa; |
3399 | } | 3399 | } |
3400 | err = rtnl_unicast(skb, NETLINK_CB(in_skb).pid); | 3400 | err = rtnl_unicast(skb, &init_net, NETLINK_CB(in_skb).pid); |
3401 | errout_ifa: | 3401 | errout_ifa: |
3402 | in6_ifa_put(ifa); | 3402 | in6_ifa_put(ifa); |
3403 | errout: | 3403 | errout: |
@@ -3420,10 +3420,10 @@ static void inet6_ifa_notify(int event, struct inet6_ifaddr *ifa) | |||
3420 | kfree_skb(skb); | 3420 | kfree_skb(skb); |
3421 | goto errout; | 3421 | goto errout; |
3422 | } | 3422 | } |
3423 | err = rtnl_notify(skb, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); | 3423 | err = rtnl_notify(skb, &init_net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); |
3424 | errout: | 3424 | errout: |
3425 | if (err < 0) | 3425 | if (err < 0) |
3426 | rtnl_set_sk_err(RTNLGRP_IPV6_IFADDR, err); | 3426 | rtnl_set_sk_err(&init_net, RTNLGRP_IPV6_IFADDR, err); |
3427 | } | 3427 | } |
3428 | 3428 | ||
3429 | static inline void ipv6_store_devconf(struct ipv6_devconf *cnf, | 3429 | static inline void ipv6_store_devconf(struct ipv6_devconf *cnf, |
@@ -3628,10 +3628,10 @@ void inet6_ifinfo_notify(int event, struct inet6_dev *idev) | |||
3628 | kfree_skb(skb); | 3628 | kfree_skb(skb); |
3629 | goto errout; | 3629 | goto errout; |
3630 | } | 3630 | } |
3631 | err = rtnl_notify(skb, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); | 3631 | err = rtnl_notify(skb, &init_net, 0, RTNLGRP_IPV6_IFADDR, NULL, GFP_ATOMIC); |
3632 | errout: | 3632 | errout: |
3633 | if (err < 0) | 3633 | if (err < 0) |
3634 | rtnl_set_sk_err(RTNLGRP_IPV6_IFADDR, err); | 3634 | rtnl_set_sk_err(&init_net, RTNLGRP_IPV6_IFADDR, err); |
3635 | } | 3635 | } |
3636 | 3636 | ||
3637 | static inline size_t inet6_prefix_nlmsg_size(void) | 3637 | static inline size_t inet6_prefix_nlmsg_size(void) |
@@ -3697,10 +3697,10 @@ static void inet6_prefix_notify(int event, struct inet6_dev *idev, | |||
3697 | kfree_skb(skb); | 3697 | kfree_skb(skb); |
3698 | goto errout; | 3698 | goto errout; |
3699 | } | 3699 | } |
3700 | err = rtnl_notify(skb, 0, RTNLGRP_IPV6_PREFIX, NULL, GFP_ATOMIC); | 3700 | err = rtnl_notify(skb, &init_net, 0, RTNLGRP_IPV6_PREFIX, NULL, GFP_ATOMIC); |
3701 | errout: | 3701 | errout: |
3702 | if (err < 0) | 3702 | if (err < 0) |
3703 | rtnl_set_sk_err(RTNLGRP_IPV6_PREFIX, err); | 3703 | rtnl_set_sk_err(&init_net, RTNLGRP_IPV6_PREFIX, err); |
3704 | } | 3704 | } |
3705 | 3705 | ||
3706 | static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) | 3706 | static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) |