]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit307fdf5e7defcacf84db21cda18770b2bf5f5196
tree09da0ae6ce3733ba53a68f907a877e2201ea1587
parent0f15d36453bbd02d404445dace49f4ae072f44e5
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