]> git.baikalelectronics.ru Git - kernel.git/commit
[libata] fix bugs in ATAPI padding DMA mapping code
authorJeff Garzik <jgarzik@pobox.com>
Mon, 14 Nov 2005 19:06:26 +0000 (14:06 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 14 Nov 2005 19:06:26 +0000 (14:06 -0500)
commit55fc463c0c6e89d6f2bbe948c1da55a71c5463ad
tree16d7ab46582219e349df6bfd48c6e20a5ba8e8fc
parentb0e75b612440e1416d5111bbc45e30190e239034
[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.
drivers/scsi/libata-core.c