diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-05-27 02:43:03 +0200 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-05-29 14:27:05 +0200 |
commit | 88f3907f6f447899544beadf491dccb32015dacb (patch) | |
tree | 65566b6711d85b951d55982d3bcc0c7393d6ad73 /lib/locking-selftest-wsem.h | |
parent | dma-debug: use sg_dma_len accessor (diff) | |
download | linux-88f3907f6f447899544beadf491dccb32015dacb.tar.xz linux-88f3907f6f447899544beadf491dccb32015dacb.zip |
dma-debug: fix debug_dma_sync_sg_for_cpu and debug_dma_sync_sg_for_device
DMA-mapping.txt says that debug_dma_sync_sg family must be called with
the _same_ one you passed into the dma_map_sg call, it should _NOT_ be
the 'count' value _returned_ from the dma_map_sg call.
debug_dma_sync_sg_for_cpu and debug_dma_sync_sg_for_device can't
handle this properly; they need to use the sg_mapped_ents in struct
dma_debug_entry as debug_dma_unmap_sg() does.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions