Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c7cf3b9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Nicholas Bellinger
Browse files

tcm_fc: Fix possible lock to unlock type deadlock



There is a typo here, it should be an unlock instead of a lock.  The
original code will deadlock.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 61db9527
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -332,7 +332,7 @@ void ft_sess_close(struct se_session *se_sess)
	lport = sess->tport->lport;
	port_id = sess->port_id;
	if (port_id == -1) {
		mutex_lock(&ft_lport_lock);
		mutex_unlock(&ft_lport_lock);
		return;
	}
	FT_SESS_DBG("port_id %x\n", port_id);