From: Allan Stephens Date: Mon, 24 Jan 2011 21:22:43 +0000 (-0500) Subject: tipc: Add in missing lock during link initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=214dda4a36329fdd631e3aac0fee6e6fa369db62;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Paul Gortmaker --- diff --git a/net/tipc/link.c b/net/tipc/link.c index 754e3109038..89fbb6d6e95 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c @@ -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); } /**