From: Frank Mori Hess Date: Sat, 27 Jan 2001 19:36:03 +0000 (+0000) Subject: fixed bug with initialization of buf_user_ptr and buf_user_count in X-Git-Tag: r0_7_56~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62ead642fe373afbc9001407a8915cdbeba6f010;p=comedi.git fixed bug with initialization of buf_user_ptr and buf_user_count in do_cmd_ioctl for writeable subdevices --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index b32df16e..18b52912 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -949,7 +949,7 @@ static int do_cmd_ioctl(comedi_device *dev,void *arg,void *file) s->buf_int_ptr=0; s->buf_int_count=0; - if(s->subdev_flags & SDF_READABLE){ + if(s->subdev_flags & (SDF_READABLE | SDF_WRITEABLE)){ s->buf_user_ptr=0; s->buf_user_count=0; }