Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48786
b: refs/heads/master
c: 11282b3
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Feb 16, 2007
1 parent d198da0 commit f3706a8
Show file tree
Hide file tree
Showing 2 changed files with 4 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: fc89afce349a70f73d9c0b6d91a15c4913f071a0
refs/heads/master: 11282b32a4ed7bb5fc390c83a1d6b9bc8017882c
4 changes: 3 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_memfree.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ struct mthca_icm *mthca_alloc_icm(struct mthca_dev *dev, int npages,
if (!ret) {
++chunk->npages;

if (!coherent && chunk->npages == MTHCA_ICM_CHUNK_LEN) {
if (coherent)
++chunk->nsg;
else if (chunk->npages == MTHCA_ICM_CHUNK_LEN) {
chunk->nsg = pci_map_sg(dev->pdev, chunk->mem,
chunk->npages,
PCI_DMA_BIDIRECTIONAL);
Expand Down

0 comments on commit f3706a8

Please sign in to comment.