[PATCH] libata: make ata_sg_setup_one() trim zero length sg
authorTejun Heo <htejun@gmail.com>
Mon, 20 Feb 2006 14:48:38 +0000 (23:48 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 20 Feb 2006 21:48:18 +0000 (16:48 -0500)
commit2e242fa994428bd1a40b6a7e97430413246d0a16
tree8ba101ac6b2f9d6e5d14eebb9091d43c9177626c
parentcc1887f3d8ae8ea61efa1a75af8ec0467b9dd546
[PATCH] libata: make ata_sg_setup_one() trim zero length sg

This patch makes ata_sg_setup_one() trim sg entry (thus making
qc->n_elem zero) if padding results in zero length sg entry.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c