omap: iovmm: s/sg_dma_len(sg)/sg->length/
authorOhad Ben-Cohen <ohad@wizery.com>
Wed, 8 Jun 2011 06:06:11 +0000 (09:06 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Mon, 4 Jul 2011 12:07:58 +0000 (15:07 +0300)
iovmm is erroneously using sg_dma_len with unmapped (DMA API-wise)
SG entries, and will break if CONFIG_NEED_SG_DMA_LENGTH is enabled.

Fix that by using sg->length instead.

Reported-by: Russell King <linux@arm.linux.org.uk>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>

No differences found