From: FUJITA Tomonori Date: Fri, 26 Oct 2007 11:56:24 +0000 (+0200) Subject: x86: fix pci-gart failure handling X-Git-Tag: v2.6.24-rc2~104^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5336940dd8b11180a0340ba886db62f728377d19;p=pandora-kernel.git x86: fix pci-gart failure handling blk_rq_map_sg doesn't initialize sg->dma_address/length to zero anymore. Some low level drivers reuse sg lists without initializing so IOMMUs might get non-zero dma_address/length. If map_sg fails, we need pass the number of the mapped entries to gart_unmap_sg. Signed-off-by: FUJITA Tomonori Signed-off-by: Jens Axboe --- Reading git-diff-tree failed