diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2014-05-11 12:15:10 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-06-02 21:58:11 (GMT) |
commit | 60093dc0c8b6407bc7494cbcb3e84322cc6782c8 (patch) | |
tree | b9eb3c7a9ed70625bbe3752dd9ef49e19a6ee483 /drivers/infiniband/hw/qib | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) | |
download | linux-60093dc0c8b6407bc7494cbcb3e84322cc6782c8.tar.xz |
IB: Return error for unsupported QP creation flags
Fix the usnic and thw qib drivers to err when QP creation flags that
they don't understand are provided.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_qp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_qp.c b/drivers/infiniband/hw/qib/qib_qp.c index 0cad0c4..7fcc150 100644 --- a/drivers/infiniband/hw/qib/qib_qp.c +++ b/drivers/infiniband/hw/qib/qib_qp.c @@ -985,7 +985,8 @@ struct ib_qp *qib_create_qp(struct ib_pd *ibpd, struct ib_qp *ret; if (init_attr->cap.max_send_sge > ib_qib_max_sges || - init_attr->cap.max_send_wr > ib_qib_max_qp_wrs) { + init_attr->cap.max_send_wr > ib_qib_max_qp_wrs || + init_attr->create_flags) { ret = ERR_PTR(-EINVAL); goto bail; } |