diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2007-11-14 13:34:14 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-11-20 11:05:42 -0800 |
commit | 4187b915a0f7eaa69707715e80d9fc253ff6167a (patch) | |
tree | 8ad1bada5abd9ef982a05a08b54a3dfdf0086187 /drivers/infiniband/hw/ipath/ipath_srq.c | |
parent | 14de986a0ba560b54340fd277a3579e95a2d3838 (diff) |
IB/ipath: Normalize error return codes for posting work requests
The error codes for ib_post_send(), ib_post_recv(), and ib_post_srq_recv()
were inconsistent. Use EINVAL for too many SGEs and ENOMEM for too many
WRs.
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_srq.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_srq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_srq.c b/drivers/infiniband/hw/ipath/ipath_srq.c index 434da6270f6..2fef36f4b67 100644 --- a/drivers/infiniband/hw/ipath/ipath_srq.c +++ b/drivers/infiniband/hw/ipath/ipath_srq.c @@ -59,7 +59,7 @@ int ipath_post_srq_receive(struct ib_srq *ibsrq, struct ib_recv_wr *wr, if ((unsigned) wr->num_sge > srq->rq.max_sge) { *bad_wr = wr; - ret = -ENOMEM; + ret = -EINVAL; goto bail; } |