From 0c814ffe8ad8dde03cd09713c928510133aeda18 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 8 Feb 2004 21:35:06 +0000 Subject: [PATCH] we aren't checking for writes that exceed subdevice's maxdata --- comedi/comedi_fops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index f419650b..98f4e0fe 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -704,7 +704,7 @@ static int parse_insn(comedi_device *dev,comedi_insn *insn,lsampl_t *data,void * ret = -EIO; goto out; } - + /* are we locked? (ioctl lock) */ if(s->lock && s->lock!=file){ DPRINTK("device locked\n"); @@ -730,6 +730,7 @@ static int parse_insn(comedi_device *dev,comedi_insn *insn,lsampl_t *data,void * ret=s->insn_read(dev,s,insn,data); break; case INSN_WRITE: + //XXX check against subdevice's maxdata ret=s->insn_write(dev,s,insn,data); break; case INSN_BITS: -- 2.26.2