[libata] sata_mv: off-by-1 fix
authorMark Lord <mlord@pobox.com>
Wed, 22 Mar 2006 02:11:53 +0000 (21:11 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 22 Mar 2006 02:11:53 +0000 (21:11 -0500)
commit806a6e7a9904d4a1dfd3fd79d373bf31d71d34cb
treea88aa5b3e7aa20fb144686b5b36ce88282f923ad
parenta6cce2a79deefb33354561a064f0609a3b342829
[libata] sata_mv: off-by-1 fix

This patch addresses a number of weird behaviours observed
for the sata_mv driver, by fixing an "off by one" bug in processing
of the EDMA response queue.

Basically, sata_mv was looking in the wrong place for
command results, and this produced a lot of unpredictable behaviour.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/sata_mv.c