tipc: Add missing locks in broadcast link statistics accumulation
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 26 Oct 2011 20:13:35 +0000 (16:13 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 6 Feb 2012 21:59:18 +0000 (16:59 -0500)
commitb98158e3b36645305363a598d91c544fa31446f1
tree0bef1102cf7010554b0937caef31c2fb35678bca
parent0232c5a566ff52d5c9fc1dda70253c942628ca66
tipc: Add missing locks in broadcast link statistics accumulation

Ensures that all attempts to update broadcast link statistics are done
only while holding the lock that protects the link's main data structures,
to prevent interference by simultaneous updates caused by messages
arriving on other interfaces.

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