From: Frank Mori Hess Date: Sat, 4 Oct 2003 23:19:52 +0000 (+0000) Subject: fixed comedi_buf_write_n_available argument X-Git-Tag: r0_7_69~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5545d738f58b0a98e8f52b88be36528af01f60ab;p=comedi.git fixed comedi_buf_write_n_available argument --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index e4f40f2b..eab9bb9a 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -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; } }