aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/discover.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c
index 5d643e5721eb..faeaf06d377e 100644
--- a/net/tipc/discover.c
+++ b/net/tipc/discover.c
@@ -200,9 +200,8 @@ void tipc_disc_recv_msg(struct sk_buff *buf)
200 dbg(" in own cluster\n"); 200 dbg(" in own cluster\n");
201 if (n_ptr == NULL) { 201 if (n_ptr == NULL) {
202 n_ptr = tipc_node_create(orig); 202 n_ptr = tipc_node_create(orig);
203 } 203 if (!n_ptr)
204 if (n_ptr == NULL) { 204 return;
205 return;
206 } 205 }
207 spin_lock_bh(&n_ptr->lock); 206 spin_lock_bh(&n_ptr->lock);
208 link = n_ptr->links[b_ptr->identity]; 207 link = n_ptr->links[b_ptr->identity];