Files
linux-st/include/linux
FUJITA Tomonori 5825627c94 libata: fix dma_unmap_sg misuse
libata passes the returned value of dma_map_sg() to
dma_unmap_sg(),which is the misuse of dma_unmap_sg().

DMA-mapping.txt says:

To unmap a scatterlist, just call:

	pci_unmap_sg(pdev, sglist, nents, direction);

Again, make sure DMA activity has already finished.

PLEASE NOTE:  The 'nents' argument to the pci_unmap_sg call must be
              the _same_ one you passed into the pci_map_sg call,
	      it should _NOT_ be the 'count' value _returned_ from the
              pci_map_sg call.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-03-05 07:24:57 -05:00
..
2009-02-02 22:45:10 -05:00
2009-02-18 10:32:00 +01:00
2009-02-05 16:48:53 +11:00
2009-03-01 00:19:35 -08:00
2009-02-18 15:37:56 -08:00
2009-02-25 20:28:24 +01:00
2009-03-01 00:19:36 -08:00
2009-03-05 07:24:57 -05:00
2009-02-18 15:37:55 -08:00
2009-01-31 00:15:24 +05:30
2009-02-18 15:37:53 -08:00
2009-02-20 17:57:48 -08:00
2009-02-11 14:25:36 -08:00
2009-02-18 15:37:53 -08:00
2009-02-18 15:37:53 -08:00