From: FUJITA Tomonori Date: Wed, 27 May 2009 00:43:02 +0000 (+0900) Subject: dma-debug: use sg_dma_len accessor X-Git-Tag: v2.6.31-rc1~408^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=884d05970bfbc3db368f23460dc4ce63257f240d;p=pandora-kernel.git dma-debug: use sg_dma_len accessor debug_dma_map_sg() and debug_dma_unmap_sg() use length in struct scatterlist while debug_dma_sync_sg_for_cpu() and debug_dma_sync_sg_for_device() use dma_length. This causes bugs warnings on some IOMMU implementations since these values are not same; the length doesn't represent the dma length. We always need to use sg_dma_len() accessor to get the dma length of a scatterlist entry. Signed-off-by: FUJITA Tomonori Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed