diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-09-30 10:24:05 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-30 10:24:05 +0200 |
commit | 5498380e4f403c0938801e2cd6683353d0029cac (patch) | |
tree | c65ab75034cac68e45da4d5bbb1513728bacec84 /drivers/target/iscsi/iscsi_target.c | |
parent | e76bf634870e3c5e3a767ad575f1d404c9f1cab8 (diff) | |
parent | 82b925c405444b760e743b55a9ad498cb3551afe (diff) |
Merge tag 'asoc-v3.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.17
A few small driver specific fixes and a couple of error handling fixes
in the core.
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 1f4c794f5fc..260c3e1e312 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -4540,6 +4540,7 @@ static void iscsit_logout_post_handler_diffcid( { struct iscsi_conn *l_conn; struct iscsi_session *sess = conn->sess; + bool conn_found = false; if (!sess) return; @@ -4548,12 +4549,13 @@ static void iscsit_logout_post_handler_diffcid( list_for_each_entry(l_conn, &sess->sess_conn_list, conn_list) { if (l_conn->cid == cid) { iscsit_inc_conn_usage_count(l_conn); + conn_found = true; break; } } spin_unlock_bh(&sess->conn_lock); - if (!l_conn) + if (!conn_found) return; if (l_conn->sock) |