Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 214dda4a authored by Allan Stephens's avatar Allan Stephens Committed by Paul Gortmaker
Browse files

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: default avatarAllan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent cb7ce914
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -388,7 +388,9 @@ void tipc_link_delete(struct link *l_ptr)

static void link_start(struct link *l_ptr)
{
	tipc_node_lock(l_ptr->owner);
	link_state_event(l_ptr, STARTING_EVT);
	tipc_node_unlock(l_ptr->owner);
}

/**