diff options
Diffstat (limited to 'drivers/scsi/sata_sx4.c')
-rw-r--r-- | drivers/scsi/sata_sx4.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c index c3975fada63f..b7cf279deeb2 100644 --- a/drivers/scsi/sata_sx4.c +++ b/drivers/scsi/sata_sx4.c | |||
@@ -182,6 +182,7 @@ static struct scsi_host_template pdc_sata_sht = { | |||
182 | .name = DRV_NAME, | 182 | .name = DRV_NAME, |
183 | .ioctl = ata_scsi_ioctl, | 183 | .ioctl = ata_scsi_ioctl, |
184 | .queuecommand = ata_scsi_queuecmd, | 184 | .queuecommand = ata_scsi_queuecmd, |
185 | .eh_timed_out = ata_scsi_timed_out, | ||
185 | .eh_strategy_handler = ata_scsi_error, | 186 | .eh_strategy_handler = ata_scsi_error, |
186 | .can_queue = ATA_DEF_QUEUE, | 187 | .can_queue = ATA_DEF_QUEUE, |
187 | .this_id = ATA_SHT_THIS_ID, | 188 | .this_id = ATA_SHT_THIS_ID, |
@@ -866,11 +867,6 @@ static void pdc_eng_timeout(struct ata_port *ap) | |||
866 | spin_lock_irqsave(&host_set->lock, flags); | 867 | spin_lock_irqsave(&host_set->lock, flags); |
867 | 868 | ||
868 | qc = ata_qc_from_tag(ap, ap->active_tag); | 869 | qc = ata_qc_from_tag(ap, ap->active_tag); |
869 | if (!qc) { | ||
870 | printk(KERN_ERR "ata%u: BUG: timeout without command\n", | ||
871 | ap->id); | ||
872 | goto out; | ||
873 | } | ||
874 | 870 | ||
875 | switch (qc->tf.protocol) { | 871 | switch (qc->tf.protocol) { |
876 | case ATA_PROT_DMA: | 872 | case ATA_PROT_DMA: |
@@ -889,10 +885,8 @@ static void pdc_eng_timeout(struct ata_port *ap) | |||
889 | break; | 885 | break; |
890 | } | 886 | } |
891 | 887 | ||
892 | out: | ||
893 | spin_unlock_irqrestore(&host_set->lock, flags); | 888 | spin_unlock_irqrestore(&host_set->lock, flags); |
894 | if (qc) | 889 | ata_eh_qc_complete(qc); |
895 | ata_eh_qc_complete(qc); | ||
896 | DPRINTK("EXIT\n"); | 890 | DPRINTK("EXIT\n"); |
897 | } | 891 | } |
898 | 892 | ||