Commit d995e1b7 authored by Dan Carpenter's avatar Dan Carpenter Committed by James Bottomley

[SCSI] ipr: missing unlock before a return

We recently changed the locking in this function, but this return was
missed.  It needs an unlock and the IRQs need to be restored.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent f1ba8a4f
...@@ -5874,8 +5874,11 @@ static int ipr_queuecommand(struct Scsi_Host *shost, ...@@ -5874,8 +5874,11 @@ static int ipr_queuecommand(struct Scsi_Host *shost,
goto err_nodev; goto err_nodev;
} }
if (ipr_is_gata(res) && res->sata_port) if (ipr_is_gata(res) && res->sata_port) {
return ata_sas_queuecmd(scsi_cmd, res->sata_port->ap); rc = ata_sas_queuecmd(scsi_cmd, res->sata_port->ap);
spin_unlock_irqrestore(shost->host_lock, lock_flags);
return rc;
}
ipr_cmd = __ipr_get_free_ipr_cmnd(ioa_cfg); ipr_cmd = __ipr_get_free_ipr_cmnd(ioa_cfg);
spin_unlock_irqrestore(shost->host_lock, lock_flags); spin_unlock_irqrestore(shost->host_lock, lock_flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment