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

diff -urN linux-2.4.18/mm/mprotect.c linux-2.4.19/mm/mprotect.c
@@ -284,7 +284,7 @@
 	down_write(&current->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)