diff options
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index a0289ec3e283..994015726ec8 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -2310,7 +2310,7 @@ static unsigned int atapi_xlat(struct ata_queued_cmd *qc, const u8 *scsicmd) | |||
2310 | #endif | 2310 | #endif |
2311 | } | 2311 | } |
2312 | 2312 | ||
2313 | qc->nbytes = cmd->bufflen; | 2313 | qc->nbytes = cmd->request_bufflen; |
2314 | 2314 | ||
2315 | return 0; | 2315 | return 0; |
2316 | } | 2316 | } |
@@ -2500,7 +2500,7 @@ ata_scsi_pass_thru(struct ata_queued_cmd *qc, const u8 *scsicmd) | |||
2500 | * TODO: find out if we need to do more here to | 2500 | * TODO: find out if we need to do more here to |
2501 | * cover scatter/gather case. | 2501 | * cover scatter/gather case. |
2502 | */ | 2502 | */ |
2503 | qc->nsect = cmd->bufflen / ATA_SECT_SIZE; | 2503 | qc->nsect = cmd->request_bufflen / ATA_SECT_SIZE; |
2504 | 2504 | ||
2505 | return 0; | 2505 | return 0; |
2506 | 2506 | ||