ipr: missing unlock before a return
Subsystems (3)
PATCH 1/2 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 Dan Carpenter <[email protected]>
---
Applies to linux-next.
drivers/scsi/ipr.c +5 -2
@@ -5874,8 +5874,11 @@ static int ipr_queuecommand(struct Scsi_Host *shost, goto err_nodev; } -if (ipr_is_gata (res) && res->sata_port) -return ata_sas_queuecmd (scsi_cmd, res->sata_port->ap); +if (ipr_is_gata (res) && res->sata_port) { + 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);spin_unlock_irqrestore (shost->host_lock, lock_flags);
Quoted 5 lines · Dan Carpenter
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 Dan Carpenter <[email protected]>---
Thanks for catching this.
Acked-by Brian King <[email protected]>
Signature · 3 lines
Brian King Power Linux I/O IBM Linux Technology Center