From: Tejun Heo Date: Sun, 7 Aug 2005 05:53:40 +0000 (+0900) Subject: [PATCH] sata: fix sata_sx4 dma_prep to not use sg->length X-Git-Tag: v2.6.13-rc7~103^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae009847c9ea3d668bbee21ce1d76764eca5039;p=pandora-kernel.git [PATCH] sata: fix sata_sx4 dma_prep to not use sg->length 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed