diff options
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r-- | net/tipc/net.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index 263267e0e7fe..a54f3cbe2246 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c | |||
@@ -40,8 +40,6 @@ | |||
40 | #include "subscr.h" | 40 | #include "subscr.h" |
41 | #include "socket.h" | 41 | #include "socket.h" |
42 | #include "node.h" | 42 | #include "node.h" |
43 | #include "config.h" | ||
44 | #include "bcast.h" | ||
45 | 43 | ||
46 | static const struct nla_policy tipc_nl_net_policy[TIPC_NLA_NET_MAX + 1] = { | 44 | static const struct nla_policy tipc_nl_net_policy[TIPC_NLA_NET_MAX + 1] = { |
47 | [TIPC_NLA_NET_UNSPEC] = { .type = NLA_UNSPEC }, | 45 | [TIPC_NLA_NET_UNSPEC] = { .type = NLA_UNSPEC }, |
@@ -156,7 +154,7 @@ static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) | |||
156 | void *hdr; | 154 | void *hdr; |
157 | struct nlattr *attrs; | 155 | struct nlattr *attrs; |
158 | 156 | ||
159 | hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_v2_family, | 157 | hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, |
160 | NLM_F_MULTI, TIPC_NL_NET_GET); | 158 | NLM_F_MULTI, TIPC_NL_NET_GET); |
161 | if (!hdr) | 159 | if (!hdr) |
162 | return -EMSGSIZE; | 160 | return -EMSGSIZE; |
@@ -208,7 +206,7 @@ out: | |||
208 | 206 | ||
209 | int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info) | 207 | int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info) |
210 | { | 208 | { |
211 | struct net *net = genl_info_net(info); | 209 | struct net *net = sock_net(skb->sk); |
212 | struct tipc_net *tn = net_generic(net, tipc_net_id); | 210 | struct tipc_net *tn = net_generic(net, tipc_net_id); |
213 | struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; | 211 | struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; |
214 | int err; | 212 | int err; |