aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-04-19 16:29:20 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org.(none)>2005-04-19 16:29:20 -0400
commit8462e201756dd3bbe7e542106fc6fd6fe059cee2 (patch)
tree009c39a83ef819534621445647b04ba44bb3b13f /mm
parente2cdef8c847b480529b7e26991926aab4be008e6 (diff)
[PATCH] freepgt: sys_mincore ignore FIRST_USER_PGD_NR
Remove use of FIRST_USER_PGD_NR from sys_mincore: it's inconsistent (no other syscall refers to it), unnecessary (sys_mincore loops over vmas further down) and incorrect (misses user addresses in ARM's first pgd). Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/mincore.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/mincore.c b/mm/mincore.c
index 07833dc5829d..72890780c1c9 100644
--- a/mm/mincore.c
+++ b/mm/mincore.c
@@ -118,9 +118,6 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
118 if (start & ~PAGE_CACHE_MASK) 118 if (start & ~PAGE_CACHE_MASK)
119 goto einval; 119 goto einval;
120 120
121 if (start < FIRST_USER_PGD_NR * PGDIR_SIZE)
122 goto enomem;
123
124 limit = TASK_SIZE; 121 limit = TASK_SIZE;
125 if (start >= limit) 122 if (start >= limit)
126 goto enomem; 123 goto enomem;