From 62ead642fe373afbc9001407a8915cdbeba6f010 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 27 Jan 2001 19:36:03 +0000 Subject: [PATCH] fixed bug with initialization of buf_user_ptr and buf_user_count in do_cmd_ioctl for writeable subdevices --- comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.26.2