aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.c')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_provider.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c
index ee9bc1456226..81b257e18bb6 100644
--- a/drivers/infiniband/hw/mthca/mthca_provider.c
+++ b/drivers/infiniband/hw/mthca/mthca_provider.c
@@ -540,6 +540,9 @@ static struct ib_qp *mthca_create_qp(struct ib_pd *pd,
540 struct mthca_qp *qp; 540 struct mthca_qp *qp;
541 int err; 541 int err;
542 542
543 if (init_attr->create_flags)
544 return ERR_PTR(-EINVAL);
545
543 switch (init_attr->qp_type) { 546 switch (init_attr->qp_type) {
544 case IB_QPT_RC: 547 case IB_QPT_RC:
545 case IB_QPT_UC: 548 case IB_QPT_UC: