fixed mmap reference counting
authorDavid Schleef <ds@schleef.org>
Thu, 30 Nov 2000 01:16:39 +0000 (01:16 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 30 Nov 2000 01:16:39 +0000 (01:16 +0000)
comedi/comedi_fops.c

index 9793377d800de68f39df4623d4bcceff169d2cad..15d6a4f1b7f60847f7a1ef02f5f86cab1589aec3 100644 (file)
@@ -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 */