aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sata_mv.c')
-rw-r--r--drivers/scsi/sata_mv.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index 5b36a23455de..cda4c495c10f 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -378,6 +378,7 @@ static struct scsi_host_template mv_sht = {
378 .name = DRV_NAME, 378 .name = DRV_NAME,
379 .ioctl = ata_scsi_ioctl, 379 .ioctl = ata_scsi_ioctl,
380 .queuecommand = ata_scsi_queuecmd, 380 .queuecommand = ata_scsi_queuecmd,
381 .eh_timed_out = ata_scsi_timed_out,
381 .eh_strategy_handler = ata_scsi_error, 382 .eh_strategy_handler = ata_scsi_error,
382 .can_queue = MV_USE_Q_DEPTH, 383 .can_queue = MV_USE_Q_DEPTH,
383 .this_id = ATA_SHT_THIS_ID, 384 .this_id = ATA_SHT_THIS_ID,
@@ -2025,13 +2026,8 @@ static void mv_eng_timeout(struct ata_port *ap)
2025 mv_err_intr(ap); 2026 mv_err_intr(ap);
2026 mv_stop_and_reset(ap); 2027 mv_stop_and_reset(ap);
2027 2028
2028 if (!qc) { 2029 qc->err_mask |= AC_ERR_TIMEOUT;
2029 printk(KERN_ERR "ata%u: BUG: timeout without command\n", 2030 ata_eh_qc_complete(qc);
2030 ap->id);
2031 } else {
2032 qc->err_mask |= AC_ERR_TIMEOUT;
2033 ata_eh_qc_complete(qc);
2034 }
2035} 2031}
2036 2032
2037/** 2033/**