mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user