IB/mlx4: Fix check of max_qp_dest_rdma in modify QP
[deliverable/linux.git] / drivers / infiniband / hw / mlx4 / qp.c
index 5cd70690845078ff298125f24c14380deca3598a..9c362fa7146597bd3df50a78ea733b7c36692710 100644 (file)
@@ -694,7 +694,7 @@ int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
        }
 
        if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC &&
-           attr->max_dest_rd_atomic > 1 << dev->dev->caps.max_qp_dest_rdma) {
+           attr->max_dest_rd_atomic > dev->dev->caps.max_qp_dest_rdma) {
                goto out;
        }
 
This page took 0.074852 seconds and 5 git commands to generate.