diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:21 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:21 -0400 |
commit | c44078c03f018c8cc9d7463b0db4c6c7fb316792 (patch) | |
tree | 3f638ee85d7e1eb8e0951b581b51fdcec43ff9d6 /drivers | |
parent | ee7863bc68fa6ad6fe7cfcc0e5ebe9efe0c0664e (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 9871f8272df0..b0c83c28d578 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -748,7 +748,7 @@ static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc, | |||
748 | tf->nsect = 1; /* 1 sector, lba=0 */ | 748 | tf->nsect = 1; /* 1 sector, lba=0 */ |
749 | 749 | ||
750 | if (qc->dev->flags & ATA_DFLAG_LBA) { | 750 | if (qc->dev->flags & ATA_DFLAG_LBA) { |
751 | qc->tf.flags |= ATA_TFLAG_LBA; | 751 | tf->flags |= ATA_TFLAG_LBA; |
752 | 752 | ||
753 | tf->lbah = 0x0; | 753 | tf->lbah = 0x0; |
754 | tf->lbam = 0x0; | 754 | tf->lbam = 0x0; |