aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2011-01-24 16:22:43 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-02-23 18:05:19 -0500
commit214dda4a36329fdd631e3aac0fee6e6fa369db62 (patch)
tree6c8ad63e70694276fb9eb74a82549bb1c0cbcbf9 /net/tipc/link.c
parentcb7ce91448c01724e18c1759aa5aba86e5f1c69b (diff)
tipc: Add in missing lock during link initialization
Ensure that the routine that starts up processing on a newly created link endpoint takes the spinlock of the node object that owns the link, to prevent possible conflicts with processing involving other links owned by that node object. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 754e3109038b..89fbb6d6e956 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -388,7 +388,9 @@ void tipc_link_delete(struct link *l_ptr)
388 388
389static void link_start(struct link *l_ptr) 389static void link_start(struct link *l_ptr)
390{ 390{
391 tipc_node_lock(l_ptr->owner);
391 link_state_event(l_ptr, STARTING_EVT); 392 link_state_event(l_ptr, STARTING_EVT);
393 tipc_node_unlock(l_ptr->owner);
392} 394}
393 395
394/** 396/**