diff options
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 6a99c0824751..9b5088ab2742 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -1359,7 +1359,7 @@ static unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd *qc) | |||
1359 | goto nothing_to_do; | 1359 | goto nothing_to_do; |
1360 | 1360 | ||
1361 | qc->flags |= ATA_QCFLAG_IO; | 1361 | qc->flags |= ATA_QCFLAG_IO; |
1362 | qc->nsect = n_block; | 1362 | qc->nbytes = n_block * ATA_SECT_SIZE; |
1363 | 1363 | ||
1364 | rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags, | 1364 | rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags, |
1365 | qc->tag); | 1365 | qc->tag); |
@@ -2660,7 +2660,7 @@ static unsigned int ata_scsi_pass_thru(struct ata_queued_cmd *qc) | |||
2660 | * TODO: find out if we need to do more here to | 2660 | * TODO: find out if we need to do more here to |
2661 | * cover scatter/gather case. | 2661 | * cover scatter/gather case. |
2662 | */ | 2662 | */ |
2663 | qc->nsect = scmd->request_bufflen / ATA_SECT_SIZE; | 2663 | qc->nbytes = scmd->request_bufflen; |
2664 | 2664 | ||
2665 | /* request result TF */ | 2665 | /* request result TF */ |
2666 | qc->flags |= ATA_QCFLAG_RESULT_TF; | 2666 | qc->flags |= ATA_QCFLAG_RESULT_TF; |