Browse Source

[PATCH] libata: silly fix in ata_scsi_start_stop_xlat()

Don't directly access &qc->tf when tf == &qc->tf.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Tejun Heo 19 years ago
parent
commit
c44078c03f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/scsi/libata-scsi.c

+ 1 - 1
drivers/scsi/libata-scsi.c

@@ -748,7 +748,7 @@ static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc,
 		tf->nsect = 1;	/* 1 sector, lba=0 */
 
 		if (qc->dev->flags & ATA_DFLAG_LBA) {
-			qc->tf.flags |= ATA_TFLAG_LBA;
+			tf->flags |= ATA_TFLAG_LBA;
 
 			tf->lbah = 0x0;
 			tf->lbam = 0x0;