diff options
Diffstat (limited to 'drivers/scsi/BusLogic.c')
-rw-r--r-- | drivers/scsi/BusLogic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 15e4b122d56e..9d6040bfa064 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c | |||
@@ -2746,9 +2746,15 @@ static int BusLogic_host_reset(struct scsi_cmnd * SCpnt) | |||
2746 | 2746 | ||
2747 | unsigned int id = SCpnt->device->id; | 2747 | unsigned int id = SCpnt->device->id; |
2748 | struct BusLogic_TargetStatistics *stats = &HostAdapter->TargetStatistics[id]; | 2748 | struct BusLogic_TargetStatistics *stats = &HostAdapter->TargetStatistics[id]; |
2749 | int rc; | ||
2750 | |||
2751 | spin_lock_irq(SCpnt->device->host->host_lock); | ||
2752 | |||
2749 | BusLogic_IncrementErrorCounter(&stats->HostAdapterResetsRequested); | 2753 | BusLogic_IncrementErrorCounter(&stats->HostAdapterResetsRequested); |
2750 | 2754 | ||
2751 | return BusLogic_ResetHostAdapter(HostAdapter, false); | 2755 | rc = BusLogic_ResetHostAdapter(HostAdapter, false); |
2756 | spin_unlock_irq(SCpnt->device->host->host_lock); | ||
2757 | return rc; | ||
2752 | } | 2758 | } |
2753 | 2759 | ||
2754 | /* | 2760 | /* |