Skip to content

Commit

Permalink
[PATCH] sys_mincore: s/max/min/
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Dec 17, 2006
1 parent 2bb71b5 commit 825020c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mincore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 825020c

Please sign in to comment.