From faeb4e4435b36cd9baa982f32d8df2a1f25ff94e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 6 Jan 2013 13:24:53 +0000 Subject: [PATCH] iscsi-scst: Fix code for detecting duplicate connections (merge r4680 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4698 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/conn.c b/iscsi-scst/kernel/conn.c index 990cc8851..eca99b294 100644 --- a/iscsi-scst/kernel/conn.c +++ b/iscsi-scst/kernel/conn.c @@ -275,7 +275,7 @@ static int conn_sysfs_add(struct iscsi_conn *conn) restart: list_for_each_entry(c, &session->conn_list, conn_list_entry) { - if (strcmp(addr, kobject_name(&conn->conn_kobj)) == 0) { + if (strcmp(addr, kobject_name(&c->conn_kobj)) == 0) { char c_addr[64]; iscsi_get_initiator_ip(conn, c_addr, sizeof(c_addr));