tipc: Ensure broadcast link spinlock is held when updating node map
Fixes oversight that allowed broadcast link node map to be updated without first taking the broadcast link spinlock that protects the map. As part of this fix the node map has been incorporated into the broadcast link structure to make the need for such protection more evident. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
committed by
Paul Gortmaker
parent
c47e9b9188
commit
cd3decdfd1
@@ -51,8 +51,6 @@ struct tipc_node_map {
|
||||
u32 map[MAX_NODES / WSIZE];
|
||||
};
|
||||
|
||||
extern struct tipc_node_map tipc_bcast_nmap;
|
||||
|
||||
#define PLSIZE 32
|
||||
|
||||
/**
|
||||
@@ -90,6 +88,8 @@ void tipc_port_list_free(struct port_list *pl_ptr);
|
||||
|
||||
void tipc_bclink_init(void);
|
||||
void tipc_bclink_stop(void);
|
||||
void tipc_bclink_add_node(u32 addr);
|
||||
void tipc_bclink_remove_node(u32 addr);
|
||||
struct tipc_node *tipc_bclink_retransmit_to(void);
|
||||
void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked);
|
||||
int tipc_bclink_send_msg(struct sk_buff *buf);
|
||||
|
Reference in New Issue
Block a user