Commit:     733d12813bd36ed7c727686ac1164f92f87a14a2
Parent:     e342c119172f87f2d812bccfd0283f62e1bc1c2a
Author:     Ralph Campbell <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 8 19:53:01 2007 -0800
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 14:15:28 2008 -0800

    IB/ipath: Fix error returned from ib_resize_cq if new size smaller than # 
    The gen2_basic tests check for the errno value when a CQ is resized
    smaller than the number of outstanding completions queue on the CQ.
    This patch changes ib_ipath to return EINVAL which is what ib_mthca
    returns and what gen2_basic expects.
    Signed-off-by: Ralph Campbell <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/hw/ipath/ipath_cq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/ipath/ipath_cq.c 
index d1380c7..a03bd28 100644
--- a/drivers/infiniband/hw/ipath/ipath_cq.c
+++ b/drivers/infiniband/hw/ipath/ipath_cq.c
@@ -421,7 +421,7 @@ int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct 
ib_udata *udata)
                n = head - tail;
        if (unlikely((u32)cqe < n)) {
-               ret = -EOVERFLOW;
+               ret = -EINVAL;
                goto bail_unlock;
        for (n = 0; tail != head; n++) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to