mirror of
https://github.com/SCST-project/scst.git
synced 2026-07-25 09:32:38 +00:00
isert: Fix crash on listener close while in login/logout loop
Signed-off-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -100,8 +100,7 @@ static void isert_kref_release_dev(struct kref *kref)
|
||||
dev->occupied = 0;
|
||||
dev->state = CS_INIT;
|
||||
atomic_set(&dev->available, 1);
|
||||
if (!list_is_singular(&dev->conn_list_entry))
|
||||
list_del_init(&dev->conn_list_entry);
|
||||
list_del_init(&dev->conn_list_entry);
|
||||
dev->flags = 0;
|
||||
dev->conn = NULL;
|
||||
}
|
||||
@@ -499,7 +498,6 @@ static int isert_open(struct inode *inode, struct file *filp)
|
||||
}
|
||||
|
||||
spin_lock(&isert_listen_dev.conn_lock);
|
||||
list_del_init(&dev->conn_list_entry);
|
||||
kref_get(&dev->kref);
|
||||
spin_unlock(&isert_listen_dev.conn_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user