diff options
Diffstat (limited to 'net/ipv6/addrlabel.c')
-rw-r--r-- | net/ipv6/addrlabel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/addrlabel.c b/net/ipv6/addrlabel.c index de371b5997fe..9bfa8846f262 100644 --- a/net/ipv6/addrlabel.c +++ b/net/ipv6/addrlabel.c | |||
@@ -364,7 +364,7 @@ static const struct nla_policy ifal_policy[IFAL_MAX+1] = { | |||
364 | static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh, | 364 | static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh, |
365 | void *arg) | 365 | void *arg) |
366 | { | 366 | { |
367 | struct net *net = skb->sk->sk_net; | 367 | struct net *net = sock_net(skb->sk); |
368 | struct ifaddrlblmsg *ifal; | 368 | struct ifaddrlblmsg *ifal; |
369 | struct nlattr *tb[IFAL_MAX+1]; | 369 | struct nlattr *tb[IFAL_MAX+1]; |
370 | struct in6_addr *pfx; | 370 | struct in6_addr *pfx; |
@@ -452,7 +452,7 @@ static int ip6addrlbl_fill(struct sk_buff *skb, | |||
452 | 452 | ||
453 | static int ip6addrlbl_dump(struct sk_buff *skb, struct netlink_callback *cb) | 453 | static int ip6addrlbl_dump(struct sk_buff *skb, struct netlink_callback *cb) |
454 | { | 454 | { |
455 | struct net *net = skb->sk->sk_net; | 455 | struct net *net = sock_net(skb->sk); |
456 | struct ip6addrlbl_entry *p; | 456 | struct ip6addrlbl_entry *p; |
457 | struct hlist_node *pos; | 457 | struct hlist_node *pos; |
458 | int idx = 0, s_idx = cb->args[0]; | 458 | int idx = 0, s_idx = cb->args[0]; |
@@ -490,7 +490,7 @@ static inline int ip6addrlbl_msgsize(void) | |||
490 | static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr* nlh, | 490 | static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr* nlh, |
491 | void *arg) | 491 | void *arg) |
492 | { | 492 | { |
493 | struct net *net = in_skb->sk->sk_net; | 493 | struct net *net = sock_net(in_skb->sk); |
494 | struct ifaddrlblmsg *ifal; | 494 | struct ifaddrlblmsg *ifal; |
495 | struct nlattr *tb[IFAL_MAX+1]; | 495 | struct nlattr *tb[IFAL_MAX+1]; |
496 | struct in6_addr *addr; | 496 | struct in6_addr *addr; |