Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56746
b: refs/heads/master
c: 56a8c8b
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed May 21, 2007
1 parent 5c72a2c commit 1701e40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2446304dd687488c054d0437f2aeef1ef2bfbd02
refs/heads/master: 56a8c8b6ac4d6edba5153d17730aaf96ba8f1f8c
6 changes: 6 additions & 0 deletions trunk/drivers/infiniband/hw/mlx4/srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ int mlx4_ib_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
break;
}

if (unlikely(srq->head == srq->tail)) {
err = -ENOMEM;
*bad_wr = wr;
break;
}

srq->wrid[srq->head] = wr->wr_id;

next = get_wqe(srq, srq->head);
Expand Down

0 comments on commit 1701e40

Please sign in to comment.