From: Albert Lee Date: Wed, 8 Feb 2006 08:37:43 +0000 (+0800) Subject: [PATCH] libata-dev: Fix array index value in ata_rwcmd_protocol() X-Git-Tag: v2.6.18-rc1~1079^2~98^2~13^2~54 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aef9d533da2eb7a5700a8c8700f2597c35cc50d1;p=karo-tx-linux.git [PATCH] libata-dev: Fix array index value in ata_rwcmd_protocol() Signed-off-by: Albert Lee === Signed-off-by: Jeff Garzik --- 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;