summaryrefslogtreecommitdiffstats
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorRichard Alpe <richard.alpe@ericsson.com>2015-02-09 09:50:14 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-09 13:20:49 -0800
commitd7cc75d3cb6beac88a2bd041a7700154b73a989d (patch)
treebd74842f38504d8113d4bd42f537fefac4eee016 /net/tipc/net.c
parent4b28cb581dd0df8d8ff19151f39683f641e576ba (diff)
downloadtalos-obmc-linux-d7cc75d3cb6beac88a2bd041a7700154b73a989d.tar.gz
talos-obmc-linux-d7cc75d3cb6beac88a2bd041a7700154b73a989d.zip
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:
int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info)
{
- struct net *net = genl_info_net(info);
+ struct net *net = sock_net(skb->sk);
struct tipc_net *tn = net_generic(net, tipc_net_id);
struct nlattr *attrs[TIPC_NLA_NET_MAX + 1];
int err;
OpenPOWER on IntegriCloud