patch-2.4.23 linux-2.4.23/mm/mprotect.c

Next file: linux-2.4.23/mm/oom_kill.c
Previous file: linux-2.4.23/mm/mmap.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/mm/mprotect.c linux-2.4.23/mm/mprotect.c
@@ -275,7 +275,7 @@
 	len = PAGE_ALIGN(len);
 	end = start + len;
 	if (end < start)
-		return -EINVAL;
+		return -ENOMEM;
 	if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC))
 		return -EINVAL;
 	if (end == start)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)