summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2015-06-02 09:33:22 -0400
committerDoug Ledford <dledford@redhat.com>2015-06-02 09:33:22 -0400
commitb806ef3bbed39c95b45343bf0fd78802142f6017 (patch)
treeeab4e67bef332c78c25d95e00b2d6ce3241f1aee /drivers/infiniband/ulp
parent73cdaaeed10d91441cb946200b5dbbbeb143bace (diff)
parent1156256811e42908fd13c4cfcf32965d8b93f2a8 (diff)
downloadblackbird-op-linux-b806ef3bbed39c95b45343bf0fd78802142f6017.tar.gz
blackbird-op-linux-b806ef3bbed39c95b45343bf0fd78802142f6017.zip
Merge branch 'for-4.2-misc' into k.o/for-4.2
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index 3421e42870c3..da149c278cb8 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -1128,7 +1128,7 @@ static int ipoib_neigh_hash_init(struct ipoib_dev_priv *priv)
{
struct ipoib_neigh_table *ntbl = &priv->ntbl;
struct ipoib_neigh_hash *htbl;
- struct ipoib_neigh **buckets;
+ struct ipoib_neigh __rcu **buckets;
u32 size;
clear_bit(IPOIB_NEIGH_TBL_FLUSH, &priv->flags);
@@ -1146,7 +1146,7 @@ static int ipoib_neigh_hash_init(struct ipoib_dev_priv *priv)
htbl->size = size;
htbl->mask = (size - 1);
htbl->buckets = buckets;
- ntbl->htbl = htbl;
+ RCU_INIT_POINTER(ntbl->htbl, htbl);
htbl->ntbl = ntbl;
atomic_set(&ntbl->entries, 0);
OpenPOWER on IntegriCloud