diff options
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r-- | net/tipc/net.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index f076edb74338..7ce1e86b024f 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c | |||
@@ -163,12 +163,9 @@ void tipc_sched_net_finalize(struct net *net, u32 addr) | |||
163 | 163 | ||
164 | void tipc_net_stop(struct net *net) | 164 | void tipc_net_stop(struct net *net) |
165 | { | 165 | { |
166 | u32 self = tipc_own_addr(net); | 166 | if (!tipc_own_id(net)) |
167 | |||
168 | if (!self) | ||
169 | return; | 167 | return; |
170 | 168 | ||
171 | tipc_nametbl_withdraw(net, TIPC_CFG_SRV, self, self, self); | ||
172 | rtnl_lock(); | 169 | rtnl_lock(); |
173 | tipc_bearer_stop(net); | 170 | tipc_bearer_stop(net); |
174 | tipc_node_stop(net); | 171 | tipc_node_stop(net); |