[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.
This commit is contained in:
Jeff Garzik 2005-11-12 01:27:07 -05:00
commit 828d09de4a
2 changed files with 17 additions and 6 deletions