Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
[pandora-kernel.git] / drivers / infiniband / hw / ipath / ipath_cq.c
index d1380c7..a03bd28 100644 (file)
@@ -421,7 +421,7 @@ int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
        else
                n = head - tail;
        if (unlikely((u32)cqe < n)) {
-               ret = -EOVERFLOW;
+               ret = -EINVAL;
                goto bail_unlock;
        }
        for (n = 0; tail != head; n++) {