diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-11 14:26:46 +0300 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-02-14 06:17:05 +0300 | 
| commit | 9dbbfb0ab6680c6a85609041011484e6658e7d3c (patch) | |
| tree | e5a2f465754351a263da6bdcc8816bbb051f2f76 /drivers/fpga/fpga-mgr.c | |
| parent | 6a25478077d987edc5e2f880590a2bc5fcab4441 (diff) | |
| download | linux-9dbbfb0ab6680c6a85609041011484e6658e7d3c.tar.xz | |
tipc: Fix tipc_sk_reinit race conditions
There are two problems with the function tipc_sk_reinit.  Firstly
it's doing a manual walk over an rhashtable.  This is broken as
an rhashtable can be resized and if you manually walk over it
during a resize then you may miss entries.
Secondly it's missing memory barriers as previously the code used
spinlocks which provide the barriers implicitly.
This patch fixes both problems.
Fixes: 07f6c4bc048a ("tipc: convert tipc reference table to...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
