Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=825020c3866e7312947e17a0caa9dd1a5622bafc
Commit:     825020c3866e7312947e17a0caa9dd1a5622bafc
Parent:     2bb71b5a44bfbe0d2066ee041149995f43b52d12
Author:     Oleg Nesterov <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 17 18:52:47 2006 +0300
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Dec 17 10:21:53 2006 -0800

    [PATCH] sys_mincore: s/max/min/
    
    fix a typo, sys_mincore() needs min().
    
    Signed-off-by: Oleg Nesterov <[EMAIL PROTECTED]>
    Signed-off-by: Linus "I'm a moron" Torvalds <[EMAIL PROTECTED]>
---
 mm/mincore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/mincore.c b/mm/mincore.c
index 566b6c2..8aca6f7 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(&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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to