projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c0c916
)
fixed mmap reference counting
author
David Schleef
<ds@schleef.org>
Thu, 30 Nov 2000 01:16:39 +0000
(
01:16
+0000)
committer
David Schleef
<ds@schleef.org>
Thu, 30 Nov 2000 01:16:39 +0000
(
01:16
+0000)
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index 9793377d800de68f39df4623d4bcceff169d2cad..15d6a4f1b7f60847f7a1ef02f5f86cab1589aec3 100644
(file)
--- a/
comedi/comedi_fops.c
+++ b/
comedi/comedi_fops.c
@@
-1140,9
+1140,9
@@
static int comedi_mmap_v22(struct file * file, struct vm_area_struct *vma)
rvmmap(s->prealloc_buf,s->prealloc_bufsz,vma);
- vma->vm_file = file;
- vma->vm_ops = &comedi_vm_ops;
- file_atomic_inc(&file->f_count);
+
//
vma->vm_file = file;
+
//
vma->vm_ops = &comedi_vm_ops;
+
//
file_atomic_inc(&file->f_count);
/* XXX mark subdev as mapped */