put back line that I shouldn't have removed
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 19 Oct 2001 15:37:50 +0000 (15:37 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 19 Oct 2001 15:37:50 +0000 (15:37 +0000)
comedi/comedi_fops.c

index 297b699f39ee403af47c64aa86d5bcf5c21144f8..3289df9cf2904f1019774f78001e7ec7e1d6a1a7 100644 (file)
@@ -1534,7 +1534,8 @@ printk("m is %d\n",m);
                break;  /* makes device work like a pipe */
        }
        if(!(s->subdev_flags&SDF_RUNNING) &&
-               !(s->runflags & SRF_ERROR))
+               !(s->runflags & SRF_ERROR) &&
+               async->buf_int_count - async->buf_user_count == 0)
        {
                do_become_nonbusy(dev,s);
        }