mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
tipc: Add missing broadcast link lock when sending NACK
Ensures that any attempt to send a NACK message over TIPC's broadcast link has exclusive access to the link's main data structures, to prevent interference with a simultaneous attempt to send other broadcast link traffic (such as application-generated multicast messages). Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
47361c87c5
commit
57732560d1
1 changed files with 2 additions and 0 deletions
|
@ -340,8 +340,10 @@ static void bclink_send_nack(struct tipc_node *n_ptr)
|
|||
msg_set_bcgap_to(msg, n_ptr->bclink.gap_to);
|
||||
msg_set_bcast_tag(msg, tipc_own_tag);
|
||||
|
||||
spin_lock_bh(&bc_lock);
|
||||
tipc_bearer_send(&bcbearer->bearer, buf, NULL);
|
||||
bcl->stats.sent_nacks++;
|
||||
spin_unlock_bh(&bc_lock);
|
||||
buf_discard(buf);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue