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
Signed-off-by: default avatarDan Carpenter <>
Reviewed-by: default avatarBrian King <>
Reviewed-by: default avatarEwan D. Milne <>
Signed-off-by: default avatarMartin K. Petersen <>
parent 866d372e
......@@ -4722,6 +4722,8 @@ static void ibmvfc_rport_add_thread(struct work_struct *work)
tgt_dbg(tgt, "Setting rport roles\n");
fc_remote_port_rolechg(rport, tgt->ids.roles);
} else {
spin_unlock_irqrestore(vhost->host->host_lock, flags);
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