tipc: Ensure broadcast link spinlock is held when updating node map
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 24 Oct 2011 15:18:12 +0000 (11:18 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:48 +0000 (11:33 -0500)
commitcd3decdfd1dbab8a585eafe2e5b9866f193de99e
tree6683d9e56ca9554aa8c446b311521449c2f4ded5
parentc47e9b918844ab7bb139eada7b085c576ddf0afb
tipc: Ensure broadcast link spinlock is held when updating node map

Fixes oversight that allowed broadcast link node map to be updated without
first taking the broadcast link spinlock that protects the map. As part
of this fix the node map has been incorporated into the broadcast link
structure to make the need for such protection more evident.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bcast.c
net/tipc/bcast.h
net/tipc/node.c