From 8462e201756dd3bbe7e542106fc6fd6fe059cee2 Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Tue, 19 Apr 2005 13:29:20 -0700 Subject: [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/mincore.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'mm/mincore.c') 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, if (start & ~PAGE_CACHE_MASK) goto einval; - if (start < FIRST_USER_PGD_NR * PGDIR_SIZE) - goto enomem; - limit = TASK_SIZE; if (start >= limit) goto enomem; -- cgit v1.2.2