Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83251
b: refs/heads/master
c: 2c78853
h: refs/heads/master
i:
  83249: a96cd30
  83247: 95bee72
v: v3
  • Loading branch information
Olaf Kirch authored and Roland Dreier committed Feb 5, 2008
1 parent 6f40223 commit 7f32996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: f33afc26dc03e6e0513e2e300f2aa0ad5463c2d2
refs/heads/master: 2c78853472a36c7cf51a84a34edc370e21c93ce4
8 changes: 6 additions & 2 deletions trunk/drivers/infiniband/hw/mthca/mthca_mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,10 @@ int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd,
sizeof *(mr->mem.tavor.mpt) * idx;

mr->mtt = __mthca_alloc_mtt(dev, list_len, dev->mr_table.fmr_mtt_buddy);
if (IS_ERR(mr->mtt))
if (IS_ERR(mr->mtt)) {
err = PTR_ERR(mr->mtt);
goto err_out_table;
}

mtt_seg = mr->mtt->first_seg * MTHCA_MTT_SEG_SIZE;

Expand All @@ -627,8 +629,10 @@ int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd,
mr->mem.tavor.mtts = dev->mr_table.tavor_fmr.mtt_base + mtt_seg;

mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL);
if (IS_ERR(mailbox))
if (IS_ERR(mailbox)) {
err = PTR_ERR(mailbox);
goto err_out_free_mtt;
}

mpt_entry = mailbox->buf;

Expand Down

0 comments on commit 7f32996

Please sign in to comment.