diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 65053fba8c1a..ac4428371432 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2020,7 +2020,7 @@ static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
2020 | 2020 | ||
2021 | cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid; | 2021 | cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid; |
2022 | cfg->fc_nlinfo.nlh = nlh; | 2022 | cfg->fc_nlinfo.nlh = nlh; |
2023 | cfg->fc_nlinfo.nl_net = skb->sk->sk_net; | 2023 | cfg->fc_nlinfo.nl_net = sock_net(skb->sk); |
2024 | 2024 | ||
2025 | if (tb[RTA_GATEWAY]) { | 2025 | if (tb[RTA_GATEWAY]) { |
2026 | nla_memcpy(&cfg->fc_gateway, tb[RTA_GATEWAY], 16); | 2026 | nla_memcpy(&cfg->fc_gateway, tb[RTA_GATEWAY], 16); |
@@ -2216,7 +2216,7 @@ int rt6_dump_route(struct rt6_info *rt, void *p_arg) | |||
2216 | 2216 | ||
2217 | static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) | 2217 | static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) |
2218 | { | 2218 | { |
2219 | struct net *net = in_skb->sk->sk_net; | 2219 | struct net *net = sock_net(in_skb->sk); |
2220 | struct nlattr *tb[RTA_MAX+1]; | 2220 | struct nlattr *tb[RTA_MAX+1]; |
2221 | struct rt6_info *rt; | 2221 | struct rt6_info *rt; |
2222 | struct sk_buff *skb; | 2222 | struct sk_buff *skb; |