diff options
Diffstat (limited to 'net/tipc/discover.c')
-rw-r--r-- | net/tipc/discover.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c index fc1fcf5e6b53..f28d1ae93125 100644 --- a/net/tipc/discover.c +++ b/net/tipc/discover.c | |||
@@ -203,6 +203,14 @@ void tipc_disc_recv_msg(struct sk_buff *buf, struct bearer *b_ptr) | |||
203 | return; | 203 | return; |
204 | } | 204 | } |
205 | spin_lock_bh(&n_ptr->lock); | 205 | spin_lock_bh(&n_ptr->lock); |
206 | |||
207 | /* Don't talk to neighbor during cleanup after last session */ | ||
208 | |||
209 | if (n_ptr->cleanup_required) { | ||
210 | spin_unlock_bh(&n_ptr->lock); | ||
211 | return; | ||
212 | } | ||
213 | |||
206 | link = n_ptr->links[b_ptr->identity]; | 214 | link = n_ptr->links[b_ptr->identity]; |
207 | if (!link) { | 215 | if (!link) { |
208 | dbg("creating link\n"); | 216 | dbg("creating link\n"); |