Merge r6083 from 3.0.x-iser branch

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-06-11 15:47:59 +00:00
parent 5b0edfd079
commit 994908e601
+1 -1
View File
@@ -775,7 +775,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))