diff options
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index b2531f80317e..b87f9d245e2e 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1049,7 +1049,8 @@ static void ndisc_ra_useropt(struct sk_buff *ra, struct nd_opt_hdr *opt) | |||
1049 | &ipv6_hdr(ra)->saddr); | 1049 | &ipv6_hdr(ra)->saddr); |
1050 | nlmsg_end(skb, nlh); | 1050 | nlmsg_end(skb, nlh); |
1051 | 1051 | ||
1052 | err = rtnl_notify(skb, 0, RTNLGRP_ND_USEROPT, NULL, GFP_ATOMIC); | 1052 | err = rtnl_notify(skb, &init_net, 0, RTNLGRP_ND_USEROPT, NULL, |
1053 | GFP_ATOMIC); | ||
1053 | if (err < 0) | 1054 | if (err < 0) |
1054 | goto errout; | 1055 | goto errout; |
1055 | 1056 | ||
@@ -1059,7 +1060,7 @@ nla_put_failure: | |||
1059 | nlmsg_free(skb); | 1060 | nlmsg_free(skb); |
1060 | err = -EMSGSIZE; | 1061 | err = -EMSGSIZE; |
1061 | errout: | 1062 | errout: |
1062 | rtnl_set_sk_err(RTNLGRP_ND_USEROPT, err); | 1063 | rtnl_set_sk_err(&init_net, RTNLGRP_ND_USEROPT, err); |
1063 | } | 1064 | } |
1064 | 1065 | ||
1065 | static void ndisc_router_discovery(struct sk_buff *skb) | 1066 | static void ndisc_router_discovery(struct sk_buff *skb) |