aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-07-30 18:14:15 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-07-30 18:14:15 -0400
commita670fcb43f01a67ef56176afc76e5d43d128b25c (patch)
tree09c9411c78a33ff980e9ea871bc7686e7589abbf /drivers/scsi/libata-core.c
parent327309e899662b482c58cf25f574513d38b5788c (diff)
parentb0825488a642cadcf39709961dde61440cb0731c (diff)
/spare/repo/netdev-2.6 branch 'master'
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r--drivers/scsi/libata-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index cb535fa185b9..73b1f72b7e43 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -2866,7 +2866,7 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc)
2866 if (qc->dev->class == ATA_DEV_ATAPI && qc->scsicmd) { 2866 if (qc->dev->class == ATA_DEV_ATAPI && qc->scsicmd) {
2867 struct scsi_cmnd *cmd = qc->scsicmd; 2867 struct scsi_cmnd *cmd = qc->scsicmd;
2868 2868
2869 if (!scsi_eh_eflags_chk(cmd, SCSI_EH_CANCEL_CMD)) { 2869 if (!(cmd->eh_eflags & SCSI_EH_CANCEL_CMD)) {
2870 2870
2871 /* finish completing original command */ 2871 /* finish completing original command */
2872 __ata_qc_complete(qc); 2872 __ata_qc_complete(qc);
@@ -3750,7 +3750,7 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
3750 host->max_channel = 1; 3750 host->max_channel = 1;
3751 host->unique_id = ata_unique_id++; 3751 host->unique_id = ata_unique_id++;
3752 host->max_cmd_len = 12; 3752 host->max_cmd_len = 12;
3753 scsi_set_device(host, ent->dev); 3753
3754 scsi_assign_lock(host, &host_set->lock); 3754 scsi_assign_lock(host, &host_set->lock);
3755 3755
3756 ap->flags = ATA_FLAG_PORT_DISABLED; 3756 ap->flags = ATA_FLAG_PORT_DISABLED;