Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples
authorShuah Khan <shuah.khan@hp.com>
Thu, 18 Oct 2012 20:00:58 +0000 (14:00 -0600)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 24 Oct 2012 15:07:43 +0000 (17:07 +0200)
commit8d7f62e6a7aa0bfd7163d3c4a5fb59280f6a6eb5
treecafab6820ac262f0c718e498f92fb08ce8033271
parent6c9c6d6301287e369a754d628230fa6e50cdb74b
Documentation DMA-API-HOWTO.txt Add dma mapping error check usage examples

Enhance the document to discuss the importance of dma
mapping error checks after dma_map_single() and
dma_map_page() calls. Also added usage examples that include
unmap examples in error paths when dma mapping error is
returned.  Includes correct and incorrect usages to high
light some common mistakes in error paths especially when
dma mapping fails when more than one dma mapping call is
made.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Documentation/DMA-API-HOWTO.txt