diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-10 11:56:19 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-10 11:56:19 -0700 |
commit | 0893dd327ffacb83dcca9033d2891d57b4024d6b (patch) | |
tree | dc7f614efa213e5939b32ef71209d832b28256fc /drivers | |
parent | 606867443764edac5a2c542f2fa0a12ef7a7c7fd (diff) | |
parent | 42517438f9c1011a03e49a542cba32ac5a80dd8e (diff) | |
download | blackbird-op-linux-0893dd327ffacb83dcca9033d2891d57b4024d6b.tar.gz blackbird-op-linux-0893dd327ffacb83dcca9033d2891d57b4024d6b.zip |
Merge head 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 1 | ||||
-rw-r--r-- | drivers/scsi/sata_sx4.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 794fb559efb0..6a75ec2187fd 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c @@ -385,6 +385,7 @@ int ata_scsi_error(struct Scsi_Host *host) * appropriate place */ host->host_failed--; + INIT_LIST_HEAD(&host->eh_cmd_q); DPRINTK("EXIT\n"); return 0; diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c index 140cea05de3f..efd7d7a61135 100644 --- a/drivers/scsi/sata_sx4.c +++ b/drivers/scsi/sata_sx4.c @@ -468,7 +468,7 @@ static void pdc20621_dma_prep(struct ata_queued_cmd *qc) for (i = 0; i < last; i++) { buf[idx++] = cpu_to_le32(sg_dma_address(&sg[i])); buf[idx++] = cpu_to_le32(sg_dma_len(&sg[i])); - total_len += sg[i].length; + total_len += sg_dma_len(&sg[i]); } buf[idx - 1] |= cpu_to_le32(ATA_PRD_EOT); sgt_len = idx * 4; |