[SCSI] wd7000: fix reset handler typo spin_unlock_irq() => spin_lock_irq()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, April 22, 2010 - 9:59 am

Gitweb:     http://git.kernel.org/linus/a8f23b03535359c5afeb77d937b89b8a4d87b2b2
Commit:     a8f23b03535359c5afeb77d937b89b8a4d87b2b2
Parent:     5bbf297cc652713a0a6511004b8d4c1cc21a3b02
Author:     Dan Carpenter <error27@gmail.com>
AuthorDate: Thu Apr 1 18:55:16 2010 +0300
Committer:  James Bottomley <James.Bottomley@suse.de>
CommitDate: Sun Apr 11 13:37:33 2010 -0500

    [SCSI] wd7000: fix reset handler typo spin_unlock_irq() => spin_lock_irq()
    
    This was introduced back in 2005 at the very start of the git era by:
    	df0ae2497ddefd72a87f3a3b34ff32455d7d4ae0
    	[SCSI] allow sleeping in ->eh_host_reset_handler()
    
    Signed-off-by: Dan Carpenter <error27@gmail.com>
    Signed-off-by: James Bottomley <James.Bottomley@suse.de>
---
 drivers/scsi/wd7000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c
index d0b7d2f..333580b 100644
--- a/drivers/scsi/wd7000.c
+++ b/drivers/scsi/wd7000.c
@@ -1587,7 +1587,7 @@ static int wd7000_host_reset(struct scsi_cmnd *SCpnt)
 {
 	Adapter *host = (Adapter *) SCpnt->device->host->hostdata;
 
-	spin_unlock_irq(SCpnt->device->host->host_lock);
+	spin_lock_irq(SCpnt->device->host->host_lock);
 
 	if (wd7000_adapter_reset(host) < 0) {
 		spin_unlock_irq(SCpnt->device->host->host_lock);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCSI] wd7000: fix reset handler typo spin_unlock_irq() => ..., Linux Kernel Mailing ..., (Thu Apr 22, 9:59 am)