we aren't checking for writes that exceed subdevice's maxdata
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 8 Feb 2004 21:35:06 +0000 (21:35 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 8 Feb 2004 21:35:06 +0000 (21:35 +0000)
comedi/comedi_fops.c

index f419650ba1923b75e48062c0299d1af1462cb453..98f4e0fe7f38f03f097ddc73f766d236097eef0d 100644 (file)
@@ -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: