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-Url: https://git.stricted.de/?a=commitdiff_plain;h=aef9d533da2eb7a5700a8c8700f2597c35cc50d1;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 6daba4e2c3f..dab13ed6fa7 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;