Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9125
b: refs/heads/master
c: 6577ae5
h: refs/heads/master
i:
  9123: 77ffe20
v: v3
  • Loading branch information
Roland Dreier committed Sep 19, 2005
1 parent be4e037 commit 52d4566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3853194c2e174cee4da093c67bd54cbf9a38559a
refs/heads/master: 6577ae51cf52f5fb0e4a85e673dd7bf2d0074e3e
3 changes: 2 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ static int mthca_alloc_srq_buf(struct mthca_dev *dev, struct mthca_pd *pd,
scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
}

srq->last = get_wqe(srq, srq->max - 1);

return 0;
}

Expand Down Expand Up @@ -263,7 +265,6 @@ int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,

srq->first_free = 0;
srq->last_free = srq->max - 1;
srq->last = get_wqe(srq, srq->max - 1);

return 0;

Expand Down

0 comments on commit 52d4566

Please sign in to comment.