aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.22-sparse/mm/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'xenolinux-2.4.22-sparse/mm/mprotect.c')
-rw-r--r--xenolinux-2.4.22-sparse/mm/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xenolinux-2.4.22-sparse/mm/mprotect.c b/xenolinux-2.4.22-sparse/mm/mprotect.c
index a6f355d03b..e618a3b74d 100644
--- a/xenolinux-2.4.22-sparse/mm/mprotect.c
+++ b/xenolinux-2.4.22-sparse/mm/mprotect.c
@@ -275,7 +275,7 @@ asmlinkage long sys_mprotect(unsigned long start, size_t len, unsigned long prot
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)