Index: mm/mprotect.c =================================================================== RCS file: /home/repository/sw/linux-2.4.18/mm/mprotect.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 mprotect.c --- mm/mprotect.c 4 Mar 2002 11:13:35 -0000 1.1.1.1 +++ mm/mprotect.c 25 Jun 2002 07:00:55 -0000 @@ -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; } }