]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Add missing spinlock in name table display code
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 5 Jun 2008 00:38:22 +0000 (17:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2008 00:38:22 +0000 (17:38 -0700)
commit14deda5b52164a17965e1d5f91cf6c21f7a295fd
tree09da0ae6ce3733ba53a68f907a877e2201ea1587
parente007c72920391bbb282cd89dad32306e58f236e8
tipc: Add missing spinlock in name table display code

This patch ensures that the display code that traverses the
publication lists belonging to a name table entry take its
associated spinlock, to protect against a possible change to
one of its "head of list" pointers caused by a simultaneous
name table lookup operation by another thread of control.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c