patch-2.4.19 linux-2.4.19/mm/mprotect.c
Next file: linux-2.4.19/mm/oom_kill.c
Previous file: linux-2.4.19/mm/mmap.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/mm/mprotect.c
- Orig date:
Mon Sep 17 15:30:23 2001
diff -urN linux-2.4.18/mm/mprotect.c linux-2.4.19/mm/mprotect.c
@@ -284,7 +284,7 @@
down_write(¤t->mm->mmap_sem);
vma = find_vma_prev(current->mm, start, &prev);
- error = -EFAULT;
+ error = -ENOMEM;
if (!vma || vma->vm_start > start)
goto out;
@@ -317,7 +317,7 @@
nstart = tmp;
vma = next;
if (!vma || vma->vm_start != nstart) {
- error = -EFAULT;
+ error = -ENOMEM;
goto out;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)