Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165850
b: refs/heads/master
c: f477f5b
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Dan Williams committed Sep 21, 2009
1 parent a7f632e commit 8855e2b
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 1b6df6930994d5d027375b07ac9da63644eb5758
refs/heads/master: f477f5b3316f39c841aa121a219b82b3a56e7da7
5 changes: 3 additions & 2 deletions trunk/drivers/dma/ioat/dma_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@ ioat2_dma_prep_memcpy_lock(struct dma_chan *c, dma_addr_t dma_dest,
/* pass */;
else
return NULL;
for (i = 0; i < num_descs; i++) {
i = 0;
do {
size_t copy = min_t(size_t, len, 1 << ioat->xfercap_log);

desc = ioat2_get_ring_ent(ioat, idx + i);
Expand All @@ -707,7 +708,7 @@ ioat2_dma_prep_memcpy_lock(struct dma_chan *c, dma_addr_t dma_dest,
dst += copy;
src += copy;
dump_desc_dbg(ioat, desc);
}
} while (++i < num_descs);

desc->txd.flags = flags;
desc->len = total_len;
Expand Down

0 comments on commit 8855e2b

Please sign in to comment.