From: David Schleef Date: Thu, 30 Nov 2000 01:16:39 +0000 (+0000) Subject: fixed mmap reference counting X-Git-Tag: r0_7_51~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74e498a7ea283e2b2192d93f6e2e82d8dd078f66;p=comedi.git fixed mmap reference counting --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 9793377d..15d6a4f1 100644 --- 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 */