aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r--net/tipc/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c
index 5c4c4405b78e..a074f285e6ea 100644
--- a/net/tipc/net.c
+++ b/net/tipc/net.c
@@ -121,7 +121,7 @@ int tipc_net_start(struct net *net, u32 addr)
121 TIPC_CLUSTER_SCOPE, 0, tn->own_addr); 121 TIPC_CLUSTER_SCOPE, 0, tn->own_addr);
122 122
123 pr_info("Started in network mode\n"); 123 pr_info("Started in network mode\n");
124 pr_info("Own node address %s, network identity %u\n", 124 pr_info("Own node address %s, cluster identity %u\n",
125 tipc_addr_string_fill(addr_string, tn->own_addr), 125 tipc_addr_string_fill(addr_string, tn->own_addr),
126 tn->net_id); 126 tn->net_id);
127 return 0; 127 return 0;
@@ -238,7 +238,7 @@ int __tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info)
238 return -EPERM; 238 return -EPERM;
239 239
240 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); 240 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]);
241 if (!tipc_addr_node_valid(addr)) 241 if (!addr)
242 return -EINVAL; 242 return -EINVAL;
243 243
244 tipc_net_start(net, addr); 244 tipc_net_start(net, addr);