From: Jeff Garzik Date: Mon, 14 Nov 2005 19:06:26 +0000 (-0500) Subject: [libata] fix bugs in ATAPI padding DMA mapping code X-Git-Tag: v2.6.15-rc2~79^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1410f2d951d45aee3bdbcc05ecedaaa9db276e5;p=pandora-kernel.git [libata] fix bugs in ATAPI padding DMA mapping code The ATAPI pad-to-next-32bit-boundary code modifies the scatterlist's length variable, sometimes to zero. x86-64 platform would oops if a zero-length scatterlist entry was asked to be mapped. Work around this by ensuring that we never DMA-map a zero length buffer or SG entry. --- Reading git-diff-tree failed