]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] sys_mincore: s/max/min/
authorOleg Nesterov <oleg@tv-sign.ru>
Sun, 17 Dec 2006 15:52:47 +0000 (18:52 +0300)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sun, 17 Dec 2006 18:21:53 +0000 (10:21 -0800)
fix a typo, sys_mincore() needs min().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus "I'm a moron" Torvalds <torvalds@osdl.org>
mm/mincore.c

index 566b6c2bae5fd8c92cb7c434d8eb1fe13ed4737d..8aca6f7167bbb25f858075c90c64d766fcc1e4c3 100644 (file)
@@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
                 * the temporary buffer size.
                 */
                down_read(&current->mm->mmap_sem);
-               retval = do_mincore(start, tmp, max(pages, PAGE_SIZE));
+               retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
                up_read(&current->mm->mmap_sem);
 
                if (retval <= 0)