Commit 0073887a authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen

ibmvfc: prevent a potential deadlock

My static checker complains that we need to unlock on this path.  Seems
true.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 866d372e
...@@ -4722,6 +4722,8 @@ static void ibmvfc_rport_add_thread(struct work_struct *work) ...@@ -4722,6 +4722,8 @@ static void ibmvfc_rport_add_thread(struct work_struct *work)
tgt_dbg(tgt, "Setting rport roles\n"); tgt_dbg(tgt, "Setting rport roles\n");
fc_remote_port_rolechg(rport, tgt->ids.roles); fc_remote_port_rolechg(rport, tgt->ids.roles);
put_device(&rport->dev); put_device(&rport->dev);
} else {
spin_unlock_irqrestore(vhost->host->host_lock, flags);
} }
kref_put(&tgt->kref, ibmvfc_release_tgt); kref_put(&tgt->kref, ibmvfc_release_tgt);
......
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