diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-04-21 10:55:51 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-22 21:17:53 -0400 |
commit | 28dd94187afd660a350d01d6bad4a915a6d570b8 (patch) | |
tree | c53e49a95c682a5d656fa7e95d847a8ae10aeb50 /net/tipc/discover.h | |
parent | 4ae88c94d3b52dc47c6ad9352991219862f703f9 (diff) | |
download | talos-obmc-linux-28dd94187afd660a350d01d6bad4a915a6d570b8.tar.gz talos-obmc-linux-28dd94187afd660a350d01d6bad4a915a6d570b8.zip |
tipc: use bc_lock to protect node map in bearer structure
The node map variable - 'nodes' in bearer structure is only used by
bclink. When bclink accesses it, bc_lock is held. But when change it,
for instance, in tipc_bearer_add_dest() or tipc_bearer_remove_dest()
the bc_lock is not taken at all. To avoid any inconsistent data, we
should always grab bc_lock while accessing node map variable.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Tested-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/discover.h')
0 files changed, 0 insertions, 0 deletions