From 74e498a7ea283e2b2192d93f6e2e82d8dd078f66 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 30 Nov 2000 01:16:39 +0000 Subject: [PATCH] fixed mmap reference counting --- comedi/comedi_fops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.26.2