diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/cm.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/core/cma.c | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 9 |
3 files changed, 6 insertions, 6 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; |
1687 | err: | 1688 | err: |
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/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 69928296d74b..36348bf9dee2 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -2820,11 +2820,10 @@ static int nes_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, | |||
2820 | attr->cap.max_send_wr = nesqp->hwqp.sq_size; | 2820 | attr->cap.max_send_wr = nesqp->hwqp.sq_size; |
2821 | attr->cap.max_recv_wr = nesqp->hwqp.rq_size; | 2821 | attr->cap.max_recv_wr = nesqp->hwqp.rq_size; |
2822 | attr->cap.max_recv_sge = 1; | 2822 | attr->cap.max_recv_sge = 1; |
2823 | if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA) { | 2823 | if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA) |
2824 | init_attr->cap.max_inline_data = 0; | 2824 | attr->cap.max_inline_data = 0; |
2825 | } else { | 2825 | else |
2826 | init_attr->cap.max_inline_data = 64; | 2826 | attr->cap.max_inline_data = 64; |
2827 | } | ||
2828 | 2827 | ||
2829 | init_attr->event_handler = nesqp->ibqp.event_handler; | 2828 | init_attr->event_handler = nesqp->ibqp.event_handler; |
2830 | init_attr->qp_context = nesqp->ibqp.qp_context; | 2829 | init_attr->qp_context = nesqp->ibqp.qp_context; |