diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 81b0e1fbec1d..8db8405c1e99 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c | |||
@@ -362,7 +362,7 @@ static int send_wqe_overhead(enum mlx4_ib_qp_type type, u32 flags) | |||
362 | sizeof (struct mlx4_wqe_raddr_seg); | 362 | sizeof (struct mlx4_wqe_raddr_seg); |
363 | case MLX4_IB_QPT_RC: | 363 | case MLX4_IB_QPT_RC: |
364 | return sizeof (struct mlx4_wqe_ctrl_seg) + | 364 | return sizeof (struct mlx4_wqe_ctrl_seg) + |
365 | sizeof (struct mlx4_wqe_atomic_seg) + | 365 | sizeof (struct mlx4_wqe_masked_atomic_seg) + |
366 | sizeof (struct mlx4_wqe_raddr_seg); | 366 | sizeof (struct mlx4_wqe_raddr_seg); |
367 | case MLX4_IB_QPT_SMI: | 367 | case MLX4_IB_QPT_SMI: |
368 | case MLX4_IB_QPT_GSI: | 368 | case MLX4_IB_QPT_GSI: |
@@ -1191,8 +1191,10 @@ static struct ib_qp *_mlx4_ib_create_qp(struct ib_pd *pd, | |||
1191 | { | 1191 | { |
1192 | err = create_qp_common(to_mdev(pd->device), pd, init_attr, | 1192 | err = create_qp_common(to_mdev(pd->device), pd, init_attr, |
1193 | udata, 0, &qp, gfp); | 1193 | udata, 0, &qp, gfp); |
1194 | if (err) | 1194 | if (err) { |
1195 | kfree(qp); | ||
1195 | return ERR_PTR(err); | 1196 | return ERR_PTR(err); |
1197 | } | ||
1196 | 1198 | ||
1197 | qp->ibqp.qp_num = qp->mqp.qpn; | 1199 | qp->ibqp.qp_num = qp->mqp.qpn; |
1198 | qp->xrcdn = xrcdn; | 1200 | qp->xrcdn = xrcdn; |