Signed-off-by: Saeed Bishara <[email protected]>
---
DMA-mapping.txt | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- a/Documentation/DMA-mapping.txt 2007-08-08 12:51:07.000000000 +0300
+++ b/Documentation/DMA-mapping.txt 2007-08-08 12:50:02.000000000 +0300
@@ -514,7 +514,7 @@
int i, count = pci_map_sg(dev, sglist, nents, direction);
struct scatterlist *sg;
- for (i = 0, sg = sglist; i < count; i++, sg++) {
+ for_each_sg(sglist, sg, count, i) {
hw_address[i] = sg_dma_address(sg);
hw_len[i] = sg_dma_len(sg);
}
On Wed, Aug 08 2007, saeed bishara wrote:
> Signed-off-by: Saeed Bishara <[email protected]>
> ---
> DMA-mapping.txt | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
Good catch, will add that to the sglist branch. Thanks!
--
Jens Axboe