From cb98ac7ba78dbf48ad59caaed66aa0402035dd4a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 26 Nov 2002 20:01:58 +0000 Subject: [PATCH] fix incorrect return of error when mmapping entire buffer --- comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 5095cfd4..ff92eebc 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1258,7 +1258,7 @@ static int comedi_mmap_v22(struct file * file, struct vm_area_struct *vma) #endif size = vma->vm_end - vma->vm_start; - if(size>=async->prealloc_bufsz) + if(size>async->prealloc_bufsz) return -EFAULT; if(size&(~PAGE_MASK)) return -EFAULT; -- 2.26.2