Skip to content

Commit

Permalink
[libata] irq-pio: fix breakage related to err_mask merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Dec 6, 2005
1 parent 701db69 commit 278efe9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4336,7 +4336,8 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
ap->id, status, host_stat);

ap->hsm_task_state = HSM_ST_IDLE;
ata_qc_complete(qc, status | ATA_ERR);
qc->err_mask |= __ac_err_mask(status);
ata_qc_complete(qc);
break;
default:
goto idle_irq;
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ static void mv_host_intr(struct ata_host_set *host_set, u32 relevant,
/* mark qc status appropriately */
if (!(qc->tf.flags & ATA_TFLAG_POLLING)) {
qc->err_mask |= err_mask;
ata_qc_complete(qc, err_mask);
ata_qc_complete(qc);
}
}
}
Expand Down

0 comments on commit 278efe9

Please sign in to comment.