projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61db952
)
tcm_fc: Fix possible lock to unlock type deadlock
author
Dan Carpenter
<error27@gmail.com>
Mon, 13 Jun 2011 20:08:46 +0000
(23:08 +0300)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Fri, 24 Jun 2011 00:09:15 +0000
(
00:09
+0000)
There is a typo here, it should be an unlock instead of a lock. The
original code will deadlock.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_sess.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/target/tcm_fc/tfc_sess.c
b/drivers/target/tcm_fc/tfc_sess.c
index 03744c23095c412110b10d2e5d49abfd6ba24943..7491e21cc6ae4c35629614b687a424ac2917d87a 100644
(file)
--- a/
drivers/target/tcm_fc/tfc_sess.c
+++ b/
drivers/target/tcm_fc/tfc_sess.c
@@
-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_
un
lock(&ft_lport_lock);
return;
}
FT_SESS_DBG("port_id %x\n", port_id);