diff options
Diffstat (limited to 'net/tipc')
| -rw-r--r-- | net/tipc/net.c | 3 | ||||
| -rw-r--r-- | net/tipc/socket.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index 0374a817631e..4c564eb69e1a 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c | |||
| @@ -182,6 +182,8 @@ void tipc_net_start(u32 addr) | |||
| 182 | tipc_bclink_init(); | 182 | tipc_bclink_init(); |
| 183 | write_unlock_bh(&tipc_net_lock); | 183 | write_unlock_bh(&tipc_net_lock); |
| 184 | 184 | ||
| 185 | tipc_nametbl_publish(TIPC_CFG_SRV, tipc_own_addr, tipc_own_addr, | ||
| 186 | TIPC_ZONE_SCOPE, 0, tipc_own_addr); | ||
| 185 | pr_info("Started in network mode\n"); | 187 | pr_info("Started in network mode\n"); |
| 186 | pr_info("Own node address %s, network identity %u\n", | 188 | pr_info("Own node address %s, network identity %u\n", |
| 187 | tipc_addr_string_fill(addr_string, tipc_own_addr), tipc_net_id); | 189 | tipc_addr_string_fill(addr_string, tipc_own_addr), tipc_net_id); |
| @@ -192,6 +194,7 @@ void tipc_net_stop(void) | |||
| 192 | if (!tipc_own_addr) | 194 | if (!tipc_own_addr) |
| 193 | return; | 195 | return; |
| 194 | 196 | ||
| 197 | tipc_nametbl_withdraw(TIPC_CFG_SRV, tipc_own_addr, 0, tipc_own_addr); | ||
| 195 | write_lock_bh(&tipc_net_lock); | 198 | write_lock_bh(&tipc_net_lock); |
| 196 | tipc_bearer_stop(); | 199 | tipc_bearer_stop(); |
| 197 | tipc_bclink_stop(); | 200 | tipc_bclink_stop(); |
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 29b7f26a12cf..adc12e227303 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
| @@ -301,7 +301,6 @@ static int tipc_release(struct socket *sock) | |||
| 301 | struct tipc_sock *tsk; | 301 | struct tipc_sock *tsk; |
| 302 | struct tipc_port *port; | 302 | struct tipc_port *port; |
| 303 | struct sk_buff *buf; | 303 | struct sk_buff *buf; |
| 304 | int res; | ||
| 305 | 304 | ||
| 306 | /* | 305 | /* |
| 307 | * Exit if socket isn't fully initialized (occurs when a failed accept() | 306 | * Exit if socket isn't fully initialized (occurs when a failed accept() |
| @@ -349,7 +348,7 @@ static int tipc_release(struct socket *sock) | |||
| 349 | sock_put(sk); | 348 | sock_put(sk); |
| 350 | sock->sk = NULL; | 349 | sock->sk = NULL; |
| 351 | 350 | ||
| 352 | return res; | 351 | return 0; |
| 353 | } | 352 | } |
| 354 | 353 | ||
| 355 | /** | 354 | /** |
