isert: Fix crash on service stop when under heavy login/logout load

Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Yan Burman
2015-02-11 13:05:34 +00:00
parent 90faade1cc
commit ea5e08e74b

View File

@@ -768,7 +768,7 @@ static unsigned int isert_poll(struct file *filp,
poll_wait(filp, &dev->waitqueue, wait);
if (!dev->conn)
if (!dev->conn || dev->state == CS_DISCONNECTED)
mask |= POLLHUP | POLLIN;
else {
if (!will_read_block(dev))