diff options
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index a0289ec3e283..f1e129b7c972 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -38,9 +38,9 @@ | |||
38 | #include <linux/spinlock.h> | 38 | #include <linux/spinlock.h> |
39 | #include <scsi/scsi.h> | 39 | #include <scsi/scsi.h> |
40 | #include <scsi/scsi_host.h> | 40 | #include <scsi/scsi_host.h> |
41 | #include <scsi/scsi_cmnd.h> | ||
41 | #include <scsi/scsi_eh.h> | 42 | #include <scsi/scsi_eh.h> |
42 | #include <scsi/scsi_device.h> | 43 | #include <scsi/scsi_device.h> |
43 | #include <scsi/scsi_request.h> | ||
44 | #include <scsi/scsi_transport.h> | 44 | #include <scsi/scsi_transport.h> |
45 | #include <linux/libata.h> | 45 | #include <linux/libata.h> |
46 | #include <linux/hdreg.h> | 46 | #include <linux/hdreg.h> |
@@ -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 | ||