diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_cq.c')
-rw-r--r-- | 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 b/drivers/infiniband/hw/ipath/ipath_cq.c index d1380c7a1703..a03bd28d9b48 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) | |||
421 | else | 421 | else |
422 | n = head - tail; | 422 | n = head - tail; |
423 | if (unlikely((u32)cqe < n)) { | 423 | if (unlikely((u32)cqe < n)) { |
424 | ret = -EOVERFLOW; | 424 | ret = -EINVAL; |
425 | goto bail_unlock; | 425 | goto bail_unlock; |
426 | } | 426 | } |
427 | for (n = 0; tail != head; n++) { | 427 | for (n = 0; tail != head; n++) { |