Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72199
b: refs/heads/master
c: cb92ae8
h: refs/heads/master
i:
  72197: a0e2261
  72195: fe9cfc3
  72191: 8b96984
v: v3
  • Loading branch information
FUJITA Tomonori authored and Jens Axboe committed Oct 23, 2007
1 parent 4df7572 commit 474ba85
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 83fcaf70403ce04c693b52e62c794834b9a86089
refs/heads/master: cb92ae81509eb5ddaea53884b60437502c837405
5 changes: 5 additions & 0 deletions trunk/arch/sparc64/kernel/iommu_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ unsigned long prepare_sg(struct scatterlist *sg, int nents)
dma_sg->dma_address = dent_addr;
dma_sg->dma_length = dent_len;

if (dma_sg != sg) {
dma_sg = next_sg(dma_sg);
dma_sg->dma_length = 0;
}

return ((unsigned long) dent_addr +
(unsigned long) dent_len +
(IO_PAGE_SIZE - 1UL)) >> IO_PAGE_SHIFT;
Expand Down

0 comments on commit 474ba85

Please sign in to comment.