Skip to content

Commit

Permalink
[SCSI] wd7000: fix reset handler typo spin_unlock_irq() => spin_lock_…
Browse files Browse the repository at this point in the history
…irq()

This was introduced back in 2005 at the very start of the git era by:
	df0ae24
	[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>
  • Loading branch information
Dan Carpenter authored and James Bottomley committed Apr 11, 2010
1 parent 5bbf297 commit a8f23b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/wd7000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8f23b0

Please sign in to comment.