aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/8390/pcnet_cs.c
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2016-02-10 16:14:57 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-16 15:57:11 -0500
commitd5c91fb72f1652ea3026925240a0998a42ddb16b (patch)
tree8e731cefe0bc105ddede8e43ff947fe9903a8ee3 /drivers/net/ethernet/8390/pcnet_cs.c
parentMerge branch 'bnxt_en-fixes' (diff)
downloadlinux-dev-d5c91fb72f1652ea3026925240a0998a42ddb16b.tar.xz
linux-dev-d5c91fb72f1652ea3026925240a0998a42ddb16b.zip
tipc: fix premature addition of node to lookup table
In commit 5266698661401a ("tipc: let broadcast packet reception use new link receive function") we introduced a new per-node broadcast reception link instance. This link is created at the moment the node itself is created. Unfortunately, the allocation is done after the node instance has already been added to the node lookup hash table. This creates a potential race condition, where arriving broadcast packets are able to find and access the node before it has been fully initialized, and before the above mentioned link has been created. The result is occasional crashes in the function tipc_bcast_rcv(), which is trying to access the not-yet existing link. We fix this by deferring the addition of the node instance until after it has been fully initialized in the function tipc_node_create(). Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/8390/pcnet_cs.c')
0 files changed, 0 insertions, 0 deletions