[libata ahci, qstor] fix miscount of scatter/gather entries
authorJeff Garzik <jgarzik@pobox.com>
Sat, 12 Nov 2005 06:27:07 +0000 (01:27 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 12 Nov 2005 06:27:07 +0000 (01:27 -0500)
commit828d09de4a6c922517f533093583b9fe8cbf5808
tree44ceae8c3ead9f534a0c31b03038dc253658ad9c
parentcd52d1ee9a92587b242d946a2300a3245d3b885a
[libata ahci, qstor] fix miscount of scatter/gather entries

Don't directly reference qc->n_elem, as that might cause an off-by-one
error for misaligned (padded) ATAPI transfers.
drivers/scsi/ahci.c
drivers/scsi/sata_qstor.c