diff options
Diffstat (limited to 'drivers/infiniband/hw/amso1100')
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2_provider.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/amso1100/c2_provider.c b/drivers/infiniband/hw/amso1100/c2_provider.c index 21fb46d39319..e10d27a6e145 100644 --- a/drivers/infiniband/hw/amso1100/c2_provider.c +++ b/drivers/infiniband/hw/amso1100/c2_provider.c | |||
@@ -245,6 +245,9 @@ static struct ib_qp *c2_create_qp(struct ib_pd *pd, | |||
245 | 245 | ||
246 | pr_debug("%s:%u\n", __func__, __LINE__); | 246 | pr_debug("%s:%u\n", __func__, __LINE__); |
247 | 247 | ||
248 | if (init_attr->create_flags) | ||
249 | return ERR_PTR(-EINVAL); | ||
250 | |||
248 | switch (init_attr->qp_type) { | 251 | switch (init_attr->qp_type) { |
249 | case IB_QPT_RC: | 252 | case IB_QPT_RC: |
250 | qp = kzalloc(sizeof(*qp), GFP_KERNEL); | 253 | qp = kzalloc(sizeof(*qp), GFP_KERNEL); |