projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c042d
)
we aren't checking for writes that exceed subdevice's maxdata
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 8 Feb 2004 21:35:06 +0000
(21:35 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sun, 8 Feb 2004 21:35:06 +0000
(21:35 +0000)
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index f419650ba1923b75e48062c0299d1af1462cb453..98f4e0fe7f38f03f097ddc73f766d236097eef0d 100644
(file)
--- 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: