diff options
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r-- | drivers/scsi/ahci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 24a54a5a91b8..23caa0c4019b 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -617,7 +617,8 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc) | |||
617 | ata_tf_to_fis(&qc->tf, pp->cmd_tbl, 0); | 617 | ata_tf_to_fis(&qc->tf, pp->cmd_tbl, 0); |
618 | if (is_atapi) { | 618 | if (is_atapi) { |
619 | memset(pp->cmd_tbl + AHCI_CMD_TBL_CDB, 0, 32); | 619 | memset(pp->cmd_tbl + AHCI_CMD_TBL_CDB, 0, 32); |
620 | memcpy(pp->cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, ap->cdb_len); | 620 | memcpy(pp->cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, |
621 | qc->dev->cdb_len); | ||
621 | } | 622 | } |
622 | 623 | ||
623 | n_elem = 0; | 624 | n_elem = 0; |