aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorRichard Alpe <richard.alpe@ericsson.com>2015-02-09 03:50:14 -0500
committerDavid S. Miller <davem@davemloft.net>2015-02-09 16:20:49 -0500
commitd7cc75d3cb6beac88a2bd041a7700154b73a989d (patch)
treebd74842f38504d8113d4bd42f537fefac4eee016 /net/tipc/net.c
parent4b28cb581dd0df8d8ff19151f39683f641e576ba (diff)
tipc: convert legacy nl node addr set to nl compat
Convert TIPC_CMD_SET_NODE_ADDR to compat doit. Signed-off-by: Richard Alpe <richard.alpe@ericsson.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r--net/tipc/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c
index 8b0fb0966628..e4028f927c8a 100644
--- a/net/tipc/net.c
+++ b/net/tipc/net.c
@@ -208,7 +208,7 @@ out:
208 208
209int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info) 209int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info)
210{ 210{
211 struct net *net = genl_info_net(info); 211 struct net *net = sock_net(skb->sk);
212 struct tipc_net *tn = net_generic(net, tipc_net_id); 212 struct tipc_net *tn = net_generic(net, tipc_net_id);
213 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; 213 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1];
214 int err; 214 int err;