From: Oleg Nesterov Date: Sun, 17 Dec 2006 15:52:47 +0000 (+0300) Subject: [PATCH] sys_mincore: s/max/min/ X-Git-Tag: v2.6.20-rc2~119 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825020c3866e7312947e17a0caa9dd1a5622bafc;p=linux-2.6 [PATCH] sys_mincore: s/max/min/ fix a typo, sys_mincore() needs min(). Signed-off-by: Oleg Nesterov Signed-off-by: Linus "I'm a moron" Torvalds --- diff --git a/mm/mincore.c b/mm/mincore.c index 566b6c2bae..8aca6f7167 100644 --- a/mm/mincore.c +++ b/mm/mincore.c @@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len, * the temporary buffer size. */ down_read(¤t->mm->mmap_sem); - retval = do_mincore(start, tmp, max(pages, PAGE_SIZE)); + retval = do_mincore(start, tmp, min(pages, PAGE_SIZE)); up_read(¤t->mm->mmap_sem); if (retval <= 0)