mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
Fix incorrect duplicate connection sysfs entry detection
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4680 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