aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tfc_sess.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2011-07-11 08:15:48 -0400
committerJiri Kosina <jkosina@suse.cz>2011-07-11 08:15:55 -0400
commitb7e9c223be8ce335e30f2cf6ba588e6a4092275c (patch)
tree2d1e3b75606abc18df7ad65e51ac3f90cd68b38d /drivers/target/tcm_fc/tfc_sess.c
parentc172d82500a6cf3c32d1e650722a1055d72ce858 (diff)
parente3bbfa78bab125f58b831b5f7f45b5a305091d72 (diff)
Merge branch 'master' into for-next
Sync with Linus' tree to be able to apply pending patches that are based on newer code already present upstream.
Diffstat (limited to 'drivers/target/tcm_fc/tfc_sess.c')
-rw-r--r--drivers/target/tcm_fc/tfc_sess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c
index 65d8ea09e3fe..b41bfbd820fc 100644
--- a/drivers/target/tcm_fc/tfc_sess.c
+++ b/drivers/target/tcm_fc/tfc_sess.c
@@ -227,7 +227,7 @@ static struct ft_sess *ft_sess_create(struct ft_tport *tport, u32 port_id,
227 return NULL; 227 return NULL;
228 228
229 sess->se_sess = transport_init_session(); 229 sess->se_sess = transport_init_session();
230 if (!sess->se_sess) { 230 if (IS_ERR(sess->se_sess)) {
231 kfree(sess); 231 kfree(sess);
232 return NULL; 232 return NULL;
233 } 233 }
@@ -330,7 +330,7 @@ void ft_sess_close(struct se_session *se_sess)
330 lport = sess->tport->lport; 330 lport = sess->tport->lport;
331 port_id = sess->port_id; 331 port_id = sess->port_id;
332 if (port_id == -1) { 332 if (port_id == -1) {
333 mutex_lock(&ft_lport_lock); 333 mutex_unlock(&ft_lport_lock);
334 return; 334 return;
335 } 335 }
336 FT_SESS_DBG("port_id %x\n", port_id); 336 FT_SESS_DBG("port_id %x\n", port_id);