diff options
author | Albert Lee <albertcc@tw.ibm.com> | 2006-02-08 16:37:43 +0800 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:26:12 -0500 |
commit | aef9d533da2eb7a5700a8c8700f2597c35cc50d1 (patch) | |
tree | fffe44eb7b843dafd101b3dee6b99330086ddaec /drivers/scsi/libata-core.c | |
parent | f6ef65e6d004b77d516037424c7ccc209d0d3509 (diff) | |
download | lwn-aef9d533da2eb7a5700a8c8700f2597c35cc50d1.tar.gz lwn-aef9d533da2eb7a5700a8c8700f2597c35cc50d1.zip |
[PATCH] libata-dev: Fix array index value in ata_rwcmd_protocol()
Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
===
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 6daba4e2c3fd..dab13ed6fa78 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -611,7 +611,7 @@ int ata_rwcmd_protocol(struct ata_queued_cmd *qc) } else if (lba48 && (qc->ap->flags & ATA_FLAG_PIO_LBA48)) { /* Unable to use DMA due to host limitation */ tf->protocol = ATA_PROT_PIO; - index = dev->multi_count ? 0 : 4; + index = dev->multi_count ? 0 : 8; } else { tf->protocol = ATA_PROT_DMA; index = 16; |