[PATCH] sata: fix sata_sx4 dma_prep to not use sg->length
authorTejun Heo <htejun@gmail.com>
Sun, 7 Aug 2005 05:53:40 +0000 (14:53 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 10 Aug 2005 17:34:58 +0000 (13:34 -0400)
 sata_sx4 directly references sg->length to calculate total_len in
pdc20621_dma_prep().  This is incorrect as dma_map_sg() could have
merged multiple sg's into one and, in such case, sg->length doesn't
reflect true size of the entry.  This patch makes it use
sg_dma_len(sg).

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

No differences found