fixed comedi_buf_write_n_available argument
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 4 Oct 2003 23:19:52 +0000 (23:19 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 4 Oct 2003 23:19:52 +0000 (23:19 +0000)
comedi/comedi_fops.c

index e4f40f2bc88bf3369417d6b9d3d2603b2ab98b21..eab9bb9af6feca143525464f4d4c1435be5f2300 100644 (file)
@@ -1349,7 +1349,7 @@ static unsigned int comedi_poll_v22(struct file *file, poll_table * wait)
                async = s->async;
                if(!s->busy
                   || !(s->subdev_flags&SDF_RUNNING)
-                  || comedi_buf_write_n_available(async)>0){
+                  || comedi_buf_write_n_available(s)>0){
                        mask |= POLLOUT | POLLWRNORM;
                }
        }