aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/core/cm.c2
-rw-r--r--drivers/infiniband/core/cma.c1
-rw-r--r--drivers/infiniband/hw/mlx4/mr.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 764787ebe8d8..c9730cb3f695 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -3693,7 +3693,7 @@ static void cm_add_one(struct ib_device *ib_device)
3693 cm_dev->device = device_create(&cm_class, &ib_device->dev, 3693 cm_dev->device = device_create(&cm_class, &ib_device->dev,
3694 MKDEV(0, 0), NULL, 3694 MKDEV(0, 0), NULL,
3695 "%s", ib_device->name); 3695 "%s", ib_device->name);
3696 if (!cm_dev->device) { 3696 if (IS_ERR(cm_dev->device)) {
3697 kfree(cm_dev); 3697 kfree(cm_dev);
3698 return; 3698 return;
3699 } 3699 }
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 875e34e0b235..09b4b13fdbee 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1683,6 +1683,7 @@ int rdma_set_ib_paths(struct rdma_cm_id *id,
1683 } 1683 }
1684 1684
1685 memcpy(id->route.path_rec, path_rec, sizeof *path_rec * num_paths); 1685 memcpy(id->route.path_rec, path_rec, sizeof *path_rec * num_paths);
1686 id->route.num_paths = num_paths;
1686 return 0; 1687 return 0;
1687err: 1688err:
1688 cma_comp_exch(id_priv, CMA_ROUTE_RESOLVED, CMA_ADDR_RESOLVED); 1689 cma_comp_exch(id_priv, CMA_ROUTE_RESOLVED, CMA_ADDR_RESOLVED);
diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c
index 8f3666b20ea4..63ec26f6b0c6 100644
--- a/drivers/infiniband/hw/mlx4/mr.c
+++ b/drivers/infiniband/hw/mlx4/mr.c
@@ -238,7 +238,7 @@ struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device
238 mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev, 238 mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev,
239 size, &mfrpl->map, 239 size, &mfrpl->map,
240 GFP_KERNEL); 240 GFP_KERNEL);
241 if (!mfrpl->ibfrpl.page_list) 241 if (!mfrpl->mapped_page_list)
242 goto err_free; 242 goto err_free;
243 243
244 WARN_ON(mfrpl->map & 0x3f); 244 WARN_ON(mfrpl->map & 0x3f);