diff options
-rw-r--r-- | drivers/ata/sata_sil24.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 70b58fe9e5b1..a7f0139c3aae 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -865,7 +865,7 @@ static void sil24_qc_prep(struct ata_queued_cmd *qc) | |||
865 | } else { | 865 | } else { |
866 | prb = &cb->atapi.prb; | 866 | prb = &cb->atapi.prb; |
867 | sge = cb->atapi.sge; | 867 | sge = cb->atapi.sge; |
868 | memset(cb->atapi.cdb, 0, 32); | 868 | memset(cb->atapi.cdb, 0, sizeof(cb->atapi.cdb)); |
869 | memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len); | 869 | memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len); |
870 | 870 | ||
871 | if (ata_is_data(qc->tf.protocol)) { | 871 | if (ata_is_data(qc->tf.protocol)) { |