|
@@ -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)
|