Skip to content

Commit

Permalink
[libata] build fix after cdb_len move
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Feb 13, 2006
1 parent 3875e19 commit db024d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3282,9 +3282,9 @@ static void atapi_send_cdb(struct ata_port *ap, struct ata_queued_cmd *qc)
{
/* send SCSI cdb */
DPRINTK("send cdb\n");
WARN_ON(ap->cdb_len < 12);
WARN_ON(qc->dev->cdb_len < 12);

ata_data_xfer(ap, qc->cdb, ap->cdb_len, 1);
ata_data_xfer(ap, qc->cdb, qc->dev->cdb_len, 1);
ata_altstatus(ap); /* flush */

switch (qc->tf.protocol) {
Expand Down

0 comments on commit db024d5

Please sign in to comment.