diff options
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 46b3b8ebcc14..7c27420c2240 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -1252,6 +1252,9 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd, | |||
1252 | u8 rq_encoded_size; | 1252 | u8 rq_encoded_size; |
1253 | /* int counter; */ | 1253 | /* int counter; */ |
1254 | 1254 | ||
1255 | if (init_attr->create_flags) | ||
1256 | return ERR_PTR(-EINVAL); | ||
1257 | |||
1255 | atomic_inc(&qps_created); | 1258 | atomic_inc(&qps_created); |
1256 | switch (init_attr->qp_type) { | 1259 | switch (init_attr->qp_type) { |
1257 | case IB_QPT_RC: | 1260 | case IB_QPT_RC: |