aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/wd7000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/wd7000.c')
-rw-r--r--drivers/scsi/wd7000.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c
index bf4a758e2801..fb54a87a80a3 100644
--- a/drivers/scsi/wd7000.c
+++ b/drivers/scsi/wd7000.c
@@ -1586,9 +1586,16 @@ static int wd7000_host_reset(struct scsi_cmnd *SCpnt)
1586{ 1586{
1587 Adapter *host = (Adapter *) SCpnt->device->host->hostdata; 1587 Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
1588 1588
1589 if (wd7000_adapter_reset(host) < 0) 1589 spin_unlock_irq(SCpnt->device->host->host_lock);
1590
1591 if (wd7000_adapter_reset(host) < 0) {
1592 spin_unlock_irq(SCpnt->device->host->host_lock);
1590 return FAILED; 1593 return FAILED;
1594 }
1595
1591 wd7000_enable_intr(host); 1596 wd7000_enable_intr(host);
1597
1598 spin_unlock_irq(SCpnt->device->host->host_lock);
1592 return SUCCESS; 1599 return SUCCESS;
1593} 1600}
1594 1601